Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
How to handle a response with an empty body
From: Konrad Mathieu via curl-users <curl-users_at_cool.haxx.se>
Date: Sun, 10 May 2020 11:16:30 +0200
Date: Sun, 10 May 2020 11:16:30 +0200
Hello and thanks very much for having me!
I am writing an implementation of an xml based interface. Unfortunately,
whoever wrote the interface designed one of its function to only return
a body on errors.
Curl (in php) will for good reasons not close the connection but prompt
an error along the lines of "no chunk, no close, no size. Assume close
to signal end".
So here's my question: How can I make curl accept the non-standard
behaviour and still close the connection and return just the header?
Cheers,
Konrad
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-05-10