curl-library
Re: AW: Missing result values/attributes when executing a http post request with curl
Date: Mon, 26 Jun 2017 02:56:28 -0400
On 6/23/2017 3:50 AM, Berger, Hans-Peter AG/BHL-ESC wrote:
>
> I am using the library with the version “libcurl/7.54.0 WinSSL WinIDN”.
>
>
>
> And yes, the attribute should appear twice in the resulting Xml.
>
>
>
> My headers are:
>
> headers = curl_slist_append(headers, "Accept: application/xml ;
> charset=utf-8");
>
> headers = curl_slist_append(headers, "Content-Type:
> application/xml");
>
> headers = curl_slist_append(headers, "charset: utf-8");
>
> My options are:
>
> curl_easy_setopt(curl, CURLOPT_URL, url);
>
> curl_easy_setopt(curl, CURLOPT_POSTFIELDS, post);
>
> curl_easy_setopt(curl, CURLOPT_USERPWD, dds_Credentials());
>
> curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
>
>
>
> Everything looks fine with the resulting Xml, but the attribute
> urlLocation appears only once, where I would expect it twice.
>
> So any idea which option or header I can try to get the expected result?
>
The only thing I can think of is the user agent is not set. I think you
should try a debugging proxy like Fiddler and see if the content sent is
really the same. When you figure out what it is please let us know.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-06-26