cURL / Mailing Lists / curl-library / Single Mail

curl-library

Headers in Rest Response

From: Derick de Waal <ddewaal_at_imperial.co.za>
Date: Mon, 17 Oct 2016 15:11:32 +0000

Hi All.

We have 2 servers test and production.
On the production server we run curl 7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5.

On the test server we run curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7

On the production server when I make my GET call the output is fine and only contains the XML.
When I make the same call on the test server the output contains the HTTP header information and I can't get it suppressed.

Any idea how I can get around this?

Command:

curl -v -k -insecure
             -H "Accept:application/xml"
             -o response.xml
             https://client.com:9443/b2bservice/api/VendorOrder

Output

HTTP/1.1 200 OK
Connection: Keep-Alive
Transfer-Encoding: chunked
Expires: -1
Date: Mon, 17 Oct 2016 15:04:40 GMT
Content-Type: application/xml;charset=utf-8
Server: Apache-Coyote/1.1
Cache-Control: no-cache
Pragma: no-cache
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET

<orderMessage

Derick de Waal
Team Leader: Proteus Integration

[cid:ImperialIT_c23937f4-9413-43fa-8f2e-fc983fb52a5f.png]

M 0823249919 | T 011-8788121 | F
ddewaal_at_imperial.co.za |

To read our email legal notice, browse to disclaimer<http://www.imperiallogistics.co.za/content/e-mail-confidentiality-and-disclaimer>.

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html

ImperialIT_c23937f4-9413-43fa-8f2e-fc983fb52a5f.png
Received on 2016-10-17