LibCURL ogame "bot" problems
hey guys, i went ahead and made the groundwork for a "bot" for ogame, as of now it just updates the all of the details of the player and makes calculations based on that data. iv made a scanner where it looks though the "galaxy" view to find players to attack. the problem is the galaxy view it seems works off of a JS call once the page has been loaded (or it could be a frame, not to sure?).
for offline testing i used a safari's .webarchive save of the page, it pulls everything down into one file. also using firefox's inspect element pulls up the correct html. but i cannot seem to get LibCURL to pull down the source. is there any options or ways of getting curl to pull the whole source down?
here is my call params.
Code:
curl_easy_setopt(this->curl, CURLOPT_URL, url);
curl_easy_setopt(this->curl, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(this->curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0");
curl_easy_setopt(this->curl, CURLOPT_COOKIEFILE, "cookies.txt");
curl_easy_setopt(this->curl, CURLOPT_COOKIEJAR, "cookies.txt");
curl_easy_setopt(this->curl, CURLOPT_POSTFIELDS, postData); // if needed
curl_easy_setopt(this->curl, CURLOPT_WRITEFUNCTION, this->WriteCallback);
curl_easy_setopt(this->curl, CURLOPT_WRITEDATA, &readBuffer);
res = curl_easy_perform(this->curl);
thanks.