cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Send an empty header field

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 5 Jan 2004 23:47:25 +0100 (CET)

On Tue, 23 Dec 2003, Gara Peter wrote:

> I would like to use curl.exe with customized headers. I know that I should
> use -H option. Unfortunately, I need to send an empty header field (like -H
> "Something: ") in the request. How can I do it with curl?

Try providing some extra spaces: -H "Something: "

It might work, I haven't really dug into this. If that doesn't work, I don't
think you can do it (as the code is now, feel free to patch).

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2004-01-06