cURL / Mailing Lists / curl-library / Single Mail

curl-library

AW: Sending header with really no contents

From: Gabriel Kälin <Gabriel.Kaelin_at_visonys.com>
Date: Fri, 25 May 2007 10:26:21 +0200

I see. Yes indeed, in my case
 
X-Header: ""
 
is sent.. Sorry, I didn't read your post carefully enough.
 
Gabriel

________________________________

Von: curl-library-bounces_at_cool.haxx.se im Auftrag von Frédéric PICA
Gesendet: Fr 25.05.2007 09:49
An: libcurl development
Betreff: Re: Sending header with really no contents

Sorry, perhaps I was not clear in my first mail, I have to send exactly this :
X-Header:

All I tried with double quotes sends me everything else but not exactly a header like that.

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