Communicate with server using PUT
Ralph DiMola
rdimola at evergreeninfo.net
Wed Jun 26 19:58:25 EDT 2013
Jacque,
Here is how I access the Google server with a put url.
Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net
-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of J. Landman Gay
Sent: Wednesday, June 26, 2013 7:23 PM
To: How to use LiveCode
Subject: Re: Communicate with server using PUT
When I use the full URL with "get url" it returns a 404. When the server
person does it from Rails, they get data back. I need to get the same data
back, so I guess checking the headers won't work. The server responds with
stuff I need to use.
So if "get URL" is the way to do it, then the "get" should give me the data.
The 404 is odd, but maybe we can figure out that part.
On 6/26/13 6:11 PM, Monte Goulding wrote:
> Should be the latter... what's the error?
>
> On 27/06/2013, at 9:07 AM, "J. Landman Gay" <jacque at hyperactivesw.com>
wrote:
>
>> That's an idea, thanks.
>>
>> I'm having trouble actually doing the PUT. I need to send a string like
this:
>>
>> http://domain.com/page?thing=one&other=two&somethingelse=three
>>
>> What's the proper way to format that? Should I be using this:
>>
>> put "thing=one&other=two&somethingelse=three" into url
"http://domain.com/page"
>>
>> Or should I use "get URL" with the full URL? Both ways are returning
errors.
>>
>>
>> On 6/26/13 5:53 PM, Monte Goulding wrote:
>>> you should be able to check the libURLLastRHHeaders.. unless you are
>>> talking about mobile... actually there's no put on mobile anyway...
>>>
>>> On 27/06/2013, at 8:48 AM, "J. Landman Gay"
>>> <jacque at hyperactivesw.com> wrote:
>>>
>>>> I need to send data to a server and they want me to use PUT instead
>>>> of POST. I also need to get a verification afterward to know
>>>> whether the transaction succeeded or not. The docs aren't clear on
>>>> that, it just says errors are reported in the result.
>>>>
>>>> Before I spend too much time on this, does a PUT also provide a
>>>> response in the result?
>>
>>
>> --
>> Jacqueline Landman Gay | jacque at hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>>
>> _______________________________________________
>> 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
>
> --
> Monte Goulding
>
> M E R Goulding - software development services
> mergExt - There's an external for that!
>
>
>
>
>
> _______________________________________________
> 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
>
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
_______________________________________________
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