cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
RE: POST with HEAD?
From: Liu Shan Shui <me_at_lx.sg>
Date: Fri, 7 Aug 2009 16:13:26 +0800
Thanks for your input. I did a little bit of Googling after you mentioned
Then I came up with the following code, which executes within a few seconds
$c = curl_init();
A few notes here: Curl_exec($c) returns FALSE probably because there's no
On Fri, 7 Aug 2009, Stephen Pynenburg wrote:
> I encountered this behaviour a while ago - not sure why, but it seems
Let me just warn you when doing this.
The NOBODY option implies a HEAD request when you do it with HTTP. A HEAD
A POST response almost always have a body, and you can tell libcurl to abort
the reading of that by returning something appropriate from a callback or
By using NOBODY but setting CUSTOMREQUEST to "POST", you're basically
you should then remember that libcurl will still internally work as if it is
indeed a HEAD request.
-- / daniel.haxx.se _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2009-08-07
These mail archives are generated by hypermail.
Page updated November 12, 2010.
web site info