I have very little experience with HTTP Request. I’m calling an external REST 
service using 4D’s HTTP Request command. The REST service requires that the 
content-type be x-www-form-urlencoded. The “contents” parameter of the HTTP 
Request command supports sending a 4D Object (JSON) but that is failing 
(unknown parameter) when I submit it to the REST service. I suspect that is the 
REST service is expecting x-www-form-urlencoded rather than JSON. 

I’ve successfully tested the REST service using Postman and I can copy the 
encoded URL from Postman and send it successfully from 4D HTTP Request instead 
or JSON. So I just need to build the encoded URL on the 4D side. It’s tedious 
to do though, and I think it’s convenient to use an object on the 4D side to 
manage the key value pairs. So I’m wondering is there an ‘easy’ way to convert 
a JSON object into an encoded URL?

Hope this makes sense,

Tom Benedict
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to