cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

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

These mail archives are generated by hypermail.

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

File upload with ASP.NET