[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ftpapi] Degree sign in a RESTful POST getting error message from HTTPAPI, but not from Swagger Playground in a browser



JHHL,

Which CCSIDs have you told HTTPAPI with the http_setCCSIDs() function?

What is the hex value of the degree symbol in the EBCDIC CCSID that you've coded in your RPG application?

-SK


On 3/3/2017 3:36 PM, James H. H. Lampert wrote:
I'm sending data to a RESTful web service from a http_url_post_raw call. If I send
senddoc(): entered
{ "id" : "000000000000264" ,"description_11394": "Ambient Temperature Range, -20°C . . .
recvresp(): entered

I get
HTTP/1.1 400 Bad Request
. . .
Invalid UTF-8 start byte 0xb0

But if I copy the request body out of the debugger, and paste it into a Swagger Playground session in my browser, on the same web service, it works just fine.

I think it's the degree sign that's blowing it up. (The degree sign comes through just fine when POSTed from Swagger Playground, though.)

Is there something that can be done about this?

--
JHHL
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi


_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi