cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_HTTPHEADER ignored?

From: William Grim <grimwm_at_gmail.com>
Date: Wed, 8 Oct 2014 12:31:12 -0700

Haha, I know the feeling all too well.
On Oct 8, 2014 12:30 PM, "Chris Johnson" <cxjohnson_at_gmail.com> wrote:

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

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