cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-and-php mailing list Archives

Stop cURL transfer in PHP

From: Waruna Geekiyanage <waruna_at_nirmani.com>
Date: Tue, 20 Jul 2004 11:12:44 +0600

Is there any way to stop the transfer without getting the whole output.
I tried
    curl_setopt($ch, CURLOPT_NOBODY,1);
gives
       Content : HTTP/1.1 500 ITS Error
        Server: Microsoft-IIS/5.0
It seams that the server does not support.

and tried both
        curl_setopt($ch, CURLOPT_RANGE, "0-500");
        curl_setopt($ch, CURLOPT_RANGE, 0-500);
does not work.Still gives whole output.
Received on 2004-07-20

These mail archives are generated by hypermail.

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

File upload with ASP.NET