curl / Mailing Lists / curl-library / Single Mail

curl-library

AW: Missing result values/attributes when executing a http post request with curl

From: Berger, Hans-Peter AG/BHL-ESC <hans-peter.berger_at_schaeffler.com>
Date: Fri, 23 Jun 2017 07:50:53 +0000

Hello,
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?

Regards HP

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-06-23