Getting up on Twilio
Paul Mulroney
pmulroney at logicaldevelopments.com.au
Mon Mar 6 20:57:53 UTC 2023
Hi Das,
Stack Overflow says this:
> For application/x-www-form-urlencoded, the body of the HTTP message sent to the server is essentially one giant query string -- name/value pairs are separated by the ampersand (&), and names are separated from values by the equals symbol (=). An example of this would be:
>
> MyVariableOne=ValueOne&MyVariableTwo=ValueTwo
https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data <https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data>
So, you could take the fields of the form and encode them like that, and send that in the body of the request.
> On 6 Mar 2023, at 5:43 pm, Paul Mulroney <pmulroney at logicaldevelopments.com.au> wrote:
>
> Hi Das,
>
> You used to be able to do x-www-form-urlencoded in Omnis by creating a list with two columns: key and value. If you were using the HTTPSend commands, this was one of the parameters you could pass in. Not sure how that translates into the worker object.
>
> I'll see if I can find an example.
>
> Regards,
> Paul.
>
>
>> On 6 Mar 2023, at 5:01 am, Das Goravani <goravanis at gmail.com> wrote:
>>
>>
>> Everyone,
>>
>> I am trying to get onto Twilio to send text messages.
>>
>> I was going to use the HTTP Client Worker object.
>>
>> But it always binary encodes the contents field. Usually it’s in JSON too.
>>
>> I told this to Twilio tech support and asked if it’s OK.
>>
>> They said NO. Here is their response:
>>
>>> Short answer is no. The body and format of the requests must be exactly in the format that the documentation specify. Using binary bodies in JSON format will result in an exception.
>>>
>>> Usually, most of our services accept x-www-form-urlencoded format.
>>
>>
>> What does that last line mean practically.. what do you do to be URLencoded like that?
>>
>> Can I use the worker object? If it always makes the contents field binary it seems I cannot use it with Twilio.
>>
>> Some of you are on Twilio.. how do you do it?
>>
>> Anticipating:
>>
>> Das Goravani
>>
>>
>> _____________________________________________________________
>> Manage your list subscriptions at https://lists.omnis-dev.com
>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>
>
> My friend asked me to help him round up his 37 sheep. I said “40”
> --
> Paul W. Mulroney We Don't Do Simple Pty Ltd
> pmulroney at logicaldevelopments.com.au Trading as Logical Developments
> www.logicaldevelopments.com.au ACN 161 009 374
> Ph: +61 8 9458 3889 86 Coolgardie Street
> BENTLEY WA 6102
>
>
>
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
<https://www.logicaldevelopments.com.au/> Paul W Mulroney
Logical Developments
Customised Software Solutions
Ph: 08 9458 3889
We Don't Do Simple Pty Ltd
trading as
Logical Developments
ACN 161 009 374
<https://www.facebook.com/logicaldevelopmentswa/> <https://twitter.com/WeDontDoSimple> <https://www.linkedin.com/company/logicaldevelopments/> <https://www.youtube.com/channel/UCPldVVgWR05WX3cVrR5WUQw>
More information about the omnisdev-en
mailing list