cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Partially downloading a web page

From: mark harrington <god_of_war_at_hotmail.co.uk>
Date: Thu, 03 Aug 2006 19:33:14 +0000

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 CURLOPT_RANGE. 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.

Regards

god of war

_________________________________________________________________
Windows Live™ Messenger has arrived. Click here to download it for free!
http://imagine-msn.com/messenger/launch80/?locale=en-gb
Received on 2006-08-03

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET