Partial web page downloading
I’m trying to download part of the html code of a web site. I have attempted to use the libcurl library and have managed to achieve this for some web pages using the range command. However I cannot get it to work with the web page that I want to do this to, it would seem that the server does not support ranges. Does anyone know any way of getting round this.
The part of the web page I want to download is at the beginning of the file. If it’s not possible to get round the range issue, is it possible to terminate the download after a specified number of bytes has been received. I have looked in the libcurl library but cannot determine how to do this.
Any help would be much appreciated.