cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_HTTPHEADER ignored?

From: Chris Johnson <cxjohnson_at_gmail.com>
Date: Wed, 8 Oct 2014 14:28:57 -0500

>
>
>
> On 8 October 2014 12:17, Chris Johnson <cxjohnson_at_gmail.com> wrote:
> > libcurl 7.37.1 (FreeBSD 10 port)
> >
> > I'm setting an explicit Content-Type header for my POST operation to a
> SOAP
> > service. The value I'm setting, via curl_easy_setopt(curl,
> > CURLOPT_HTTPHEADER, headers)
> > ,
> > is "application/soap+xml". However, when executed, libcurl is actually
> > sending "application/x-www-form-urlencoded".
>

​Problem found. Too obvious: a typo in the my custom header resulted in
libcurl silently ignoring it.

Funny how frustration with other unsolvable errors will make one jump the
gun on a simple mistake like this. Sorry for having wasting everyone's
time and bandwidth. Mea culpa.​

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