AL
AL copied to clipboard
httpclient Response message
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.


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
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.