cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Send an empty header field

From: Gara Peter <havetheblues_at_freemail.hu>
Date: Thu, 8 Jan 2004 19:01:34 +0100 (CET)

Dear Daniel,

Thank you for your answer. I had tried to use extra spaces, but curl
had ignored them. So I downloaded the source code and modified the
relevant part of it to run the desired function. It was successful.

Best regards,

Peter Gara

Daniel Stenberg <daniel-curl_at_haxx.se> írta:

> 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
>
>
>

-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
Received on 2004-01-08