cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Sending header with really no contents

From: Frédéric PICA <frederic.pica_at_gmail.com>
Date: Fri, 25 May 2007 09:46:46 +0200

Ok, I will post on the curl python mailing list, I've tried that :
"X-Header:" -> Sends me "X-Header:"
X-Header: "" -> Sends me X-Header: ""

Thanks for your help,
FP

2007/5/25, Gabriel Kälin <Gabriel.Kaelin_at_visonys.com>:
>
> In the C-API use can an empty string in double quotes as header value
> (just the way you say you can't send it) and it should work fine. So the
> problem doesn't exist in the C-API. I'm not familiar with the python API
> though.
>
> Gabriel
>
> ________________________________
>
> Von: curl-library-bounces_at_cool.haxx.se im Auftrag von Frédéric PICA
> Gesendet: Do 24.05.2007 16:42
> An: curl-library_at_cool.haxx.se
> Betreff: Sending header with really no contents
>
>
> Hi,
>
> I need to send a header with exactly no contents like that:
> X-Header:
>
> I can't send that:
> X-Header: ""
>
> How can I force curl to send a header with no contents ?
> I'm using the python bindings but I think the problem is the same with the
> C api
>
> Regards,
> FP
>
>
Received on 2007-05-25