cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: --header problem

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 26 Mar 2004 13:15:39 +0100 (CET)

On Fri, 26 Mar 2004, Gisle Vanem wrote:

> How is this supposed to work:
> echo "Accept: gzip,deflate" | curl --header - -v www.foo.com

It isn't! ;-)

> My impression from the manual this should read the headers from stdin.
> But the code in main.c does "headerfilep = stdout" ?!
> Must be missing something or curl is mixing --header and --dump-header.

The latter. --header only takes a given specified header and adds that to the
requst, it never reads them from a file nor stdin. (Making it capable of
reading from a file could be an exciting improvement.)

What wording/phrase mislead you to believe this?

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-03-26