[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: JsonObject Returned is "application/octet-stream: When Expecting "application/json" //

Status
Not open for further replies.
M

Matt Baker

Guest
Poking through the response-data-chunk-00001.txt file... The HTTP response header specifies that the response Content-Type is supposed to be "application/json", but it is returning some string data...then it isn't JSON and the content type is wrong. The file looks like the quoted word "Success" followed by a whole bunch of null characters. This certainly doesn't look like JSON data.. Seems like the server is returning incorrectly formatted data. On top of that the Content-Length header is specifying that the response is supposed to be 9 bytes long. But the response body is a lot longer than just those 9 characters. So either the ABL HTTP client is writing more than it should to the debug log, or the server is sending lots of padding that it shouldn't be sending.

Continue reading...
 
Status
Not open for further replies.
Top