cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: interaction of CURLOPT_NOBODY and CURLOPT_HTTPGET

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 26 Jul 2005 23:32:00 +0200 (CEST)

On Wed, 20 Jul 2005, Eric Cooper wrote:

(Moving this thread to the curl-library mailing list where this topic
belongs.)

> The man page says that setting CURLOPT_NOBODY to 0 has no effect, but that
> doesn't seem to be true. If I've used NOBODY to do a HEAD, and then want to
> do a GET, I have to both set HTTPGET to 1 and NOBODY to 0. If I omit either
> one, curl does another HEAD instead of a GET.
>
> Here's a program that reproduces the problem.

[snip]

Hm. You are right.

But would you (in a broader sense, meaning anyone reading this) say the proper
fix is to document this behaviour or to make CURLOPT_HTTPGET set to 1 disable
the NOBODY setting?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-07-26