cURL / Mailing Lists / curl-library / Single Mail


Custom HTTP header with empty value

From: Matthew Hails <>
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.


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.

List admin:
Received on 2010-08-10