Forum Discussion
kitaitoa
2 years agoContributor
Thanks rraghvani
I try this solution:
aqHttpRequest.SetHeader("Accept", "application/json;charset=utf-8");
aqHttpRequest.SetHeader("Accept-Charset", "utf-8");
aqHttpRequest.SetHeader("Content-Type", "application/json;charset=utf-8" );
But, it doesn't handle the encoding and the getHeader of the Content-Type of the response contains only application/json
If I don't set the Content-Type I get a crash with error "HTTP 415 Unsupported Media Type"
Regarding the loss of the json, running this script :
qHttpRequest.SetHeader("Content-Type","application/json; charset=utf-8")
changes the content of the response to "text/html;charset=utf-8"
Related Content
- 2 years ago
- 4 years ago
- 3 years ago
- 11 years ago
- 5 years ago
Recent Discussions
- 4 hours ago
- 6 days ago
- 10 days ago