Communicate with server using PUT
Matthias Rebbe
matthias_livecode_150811 at m-r-d.de
Wed Jun 26 19:43:23 EDT 2013
Jacques
Is page in your URL example a folder or a file? If it is a folder then I am pretty sure it needs a slash after it.
Regards
Matthias
Von meinem iPhone gesendet
Am 27.06.2013 um 01:22 schrieb "J. Landman Gay" <jacque at hyperactivesw.com>:
> 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