AL icon indicating copy to clipboard operation
AL copied to clipboard

httpclient Response message

Open abouraoui opened this issue 7 years ago • 2 comments

Httpclient post method returning an error message regarding the content of the response message, below screenshots with error message and code, please help, Thank you.

image

image

abouraoui avatar Feb 25 '19 13:02 abouraoui

I think you need to get the Headers of your HttpContent and set the Header for Content-Type and encoding there.

varHttpContent.GetHeaders(headers) //headers: HttpHeaders
headers.Add('Content-Type', 'text/xml'); //or application/xml

wisa1 avatar Feb 27 '19 08:02 wisa1

I am closing this issue because it appears that it has been resolved. Please open a new issue if you believe this has not been resolved and reference the current issue.

atoader avatar Apr 04 '19 11:04 atoader