curl / Mailing Lists / curl-library / Single Mail


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

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

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

Received on 2017-06-23