Re: limiting download size using curl
Try to use fsockopen.
Regards
L. A. Iarrusso
<shikakaa@xxxxxxxxx> ha scritto nel messaggio
news:29a5fe12-8ae1-477f-9650-8730090a5a86@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi!
I have a server I'd like to download hundreds of pages from, and only
get the first few kilobytes of every page to save resources on both
my
and the remote end. Since the server doesn't support HTTP range to
use it in curl like curl_setopt($ch, CURLOPT_RANGE, "0-5000"); I
started looking around and found that using the custom write function
I might be able to do the same.
As I understand it, closing the handle and thus terminating the
transfer from within the callback function is not possible, so I'm a
bit stuck..
How could I get this done? Could someone paste me a fewliner example?
Thanks in advance
Andrew
.
Relevant Pages
- Re: Problem Updating New Messages from NTTP News Server OE
... > as far as I know and he doesn't have a server in his setup. ... download the answer to a problem he had posted in the Outlook group and I had seen the answer almost immediately on July 1. ... sure how taking the check out of the download headers boxes would have helped. ... pane 3) Get headers at a time 4) No check in mark all messages as read when exiting newsgroup ... (microsoft.public.windows.inetexplorer.ie6_outlookexpress) - Re: OL2003 OAB: Exceeded the download limit set by your administra
... 13:50:37 Sam Jones: Synch operation completed ... reference to Outlook Verbose Logging. ... Sort Locale being used by the server is: ... trying to download the OAB then closing Outlook ... (microsoft.public.exchange.clients) - Re: SUS
... > I have setup a SUS Server on win2k. ... 0-2.reg will not configure your machine to automatically download updates from ... critical updates or service packs that your machine needs. ... It will also ask you if you want to install them, ... (microsoft.public.windows.server.general) - Re: OL2003 OAB: Exceeded the download limit set by your administra
... 13:50:37 Sam Jones: Synch operation completed ... reference to Outlook Verbose Logging. ... Sort Locale being used by the server is: ... trying to download the OAB then closing Outlook ... (microsoft.public.exchange.clients) - Re: OL2003 OAB: Exceeded the download limit set by your administra
... 13:50:37 Sam Jones: Synch operation completed ... reference to Outlook Verbose Logging. ... Sort Locale being used by the server is: ... trying to download the OAB then closing Outlook ... (microsoft.public.exchange.clients) |
|