cURL / Mailing Lists / curl-library / Single Mail

curl-library

Custom HTTP header with empty value

From: Matthew Hails <m.m.hails_at_googlemail.com>
Date: Tue, 10 Aug 2010 14:27:34 +0100

I need to be able to send a custom HTTP header with an empty value, e.g.

   Some-Header:

But calling:

   curl_easy_setopt(handle, CURLOPT_HTTPHEADER, "Some-Header:");

Suppresses the header.

Is there any way to accomplish this? I need to send the header as-is, i.e.
no double quotes or any other characters.

(In case it's relevant - it's the "SOAPAction" header. SOAP 1.1 specifies
a different meaning for an empty value and for double quotes.
http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383528)

Regards,
Matthew.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-08-10