curl not downloading full webpage
I am trying to run a simple program to start learning curl, but it doesn't get the whole page, merely ~20KB of it :/
Code:
#include <iostream> |
After a bit more investigation I have found it cuts out at the same 'place' on the webpage with different pages having different amounts of data before it.
Is it possible they put in a character that mucks it up on purpose? |
After using the cli curl and getting the same thing, then trying wget to retrieve it I realised it redirects, so after adding in curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, true); into my program it now gets the full 56KB.
|
All times are GMT -5. The time now is 11:39 AM. |