@Mike_Duglas, do you have an example of sending a json object to a secure rest api at all using LibCurl?
Colin.
Ps. Dare I say, C6.3
@Mike_Duglas, do you have an example of sending a json object to a secure rest api at all using LibCurl?
Colin.
Ps. Dare I say, C6.3
Thatās what Iāve tried, but Iāll try again tomorrow.
Use DebugView utility to analyze client-server packets if you think that something goes wrong.
No matter how I try and send the json object Iām just getting a failed response from the server, and DebugView shows the correct information being sent in DATA_OUT
Foget that, I have something now, I found some Curl code an converted that, but now Iām going to have a look at why it didnāt do it beforehand, but I think I may know. Just going to check somethingā¦
Response message could shed a light on the reason why the server rejects the request.
I had added HttpHeaders but didnāt call SetHttpHeaders, so Iām getting a response now.
Quickie, I think I know the answer to confirm, I can pass in a XML object canāt I, afterall it is just a string once again?
Sure no matter json it is or xml.
Can I get the reponse code from respBuffer at all?
Many servers return an error in the form of something like ā{āerrorā:12345, āmessageā:ādescriptionā}ā, so use cjson to parse json response.