Thanks John,

Narinda Chandi points out Miyako’s URL_Encode component 
https://github.com/miyako/4d-tips-encode-uri 
<https://github.com/miyako/4d-tips-encode-uri>, which appears to be a product 
of the forum thread you referenced. In that component Miyako discusses and 
supports 5 ways to encode, each with different rules. At this point I just 
manually concatenate all the keys and values into a URL encoding each key or 
value as needed. The HTTP Request command docs state that the contents 
parameter is automatically encoded but evidently not in the way that I need.

I must confess I don’t understand any of this stuff. I recall struggling years 
ago trying to make an HTTP POST work with 4DIC. Hours of trial and error, 
because I simply didn’t (and still don’t) understand the underlying concepts. I 
figured it might be easier now that we have HTTP Request. I was kind hoping 
there’d be a nice ORDA way to populate a “content" object and send it on it’s 
way. If that’s possible, I’ve missed it.

Thanks again,

Tom Benedict

> On Oct 12, 2019, at 13:49, John DeSoi via 4D_Tech <[email protected]> 
> wrote:
> 
> No easy way in 4D because there is no built in function to do url encoding. 
> See feature request at the link below along with some code to implement it.
> 
> https://forums.4d.com/Post/EN/17578327/1/17591881
> 
> John DeSoi, Ph.D.
> 
> 
> 
>> On Oct 12, 2019, at 1:54 PM, Tom Benedict via 4D_Tech <[email protected]> 
>> wrote:
>> 
>> 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?
> 
> **********************************************************************
> 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]
> **********************************************************************

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