| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
Re: CURLOPT_NOBODY behavior
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 31 Mar 2008 21:07:45 +0200 (CEST)
On Mon, 31 Mar 2008, Shailesh N. Humbad wrote:
First, a disclaimer: I'm a libcurl guy rather than a PHP/CURL guy.
> Setting CURLOPT_NOBODY to "true" with curl_setopt sets the request method to
Right, since a HEAD response must not have any content...
BTW, "cURL" is just the name of the project that produces two things: the
> However, setting CURLOPT_NOBODY back to "false" does *not* reset the request
While I can agree with parts of your reactions, there's nothing in the libcurl
Let me also mention that libcurl is now almost eight years old and you're the
I'll certainly consider making libcurl ignore CURLOPT_NOBODY set to FALSE.
> From a usability standpoint, setting CURLOPT_NOBODY to "true" should NOT set
I'd reverse the logic and say that the FALSE behavior is the bad one. Or at
> The only way to reset the state of the cURL session is to set CURLOPT_HTTPGET
No. You can "reset" it several ways but if you want to use GET then
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2008-03-31 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info