[on-rev] libURL and https
Scott Morrow
scott at elementarysoftware.com
Wed Jul 9 05:31:08 EDT 2014
Thanks John,
I didn’t know about wget but after reading up on it your script looks like just what I needed. No luck yet, though.
:- )
Scott Morrow
On Jul 9, 2014, at 12:13 AM, John Craig <john at splash21.com> wrote:
> Hi, Scott. I couldn't post to an https URL with on-rev the last time I tried, but the workaround was to use wget via shell.
> The example below is for android push notifications and shows how to send headers as well as the post data.
>
> put "wget" && \
> "--header=" & quote & "Content-Type: application/json" & quote && \
> "--header=" & quote & "Authorization: key=" & tAPIKey & quote && \
> "--post-data=" & quote & tNotification & quote && \
> "-q -O - https://android.googleapis.com/gcm/send" \
> into tCommand
> get shell(tCommand)
> put it into tResponse
>
>
> :D
>
>
> On 09/07/2014 03:58, Scott Morrow wrote:
>> Does LibURL work with the on-rev server? I’m attempting:
>>
>> “post tMyJsonData to url "https://mandrillapp.com/api/1.0/messages/send.json”
>>
>> I think I need to first use
>> libUrlSetSSLVerification “false”
>>
>> but it produces a "can't find handler” error
>>
>> I’m trying to use mandrillapp.com to send mail from a web form.
>> I can post to mandrill with http:// but not with https://
>>
>> I’ve used “get” and “put” for this in the past but that hasn’t worked for me either this time. <sigh>
>>
>>
>> Scott Morrow
>>
>> Elementary Software
>> (Now with 20% less chalk dust!)
>> web http://elementarysoftware.com/
>> email scott at elementarysoftware.com
>> office 1-800-615-0867
>> ------------------------------------------------------
>>
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list