Communicate with server using PUT

Mike Bonner bonnmike at gmail.com
Thu Jun 27 15:28:01 CEST 2013


I think a put and a post are very similar. You might manually set the
headers to work as a put but us post to send the data. (think the data
comes through the same way, its just the headers that differ)


On Thu, Jun 27, 2013 at 6:20 AM, Ben Rubinstein <benr_mc at cogapp.com> wrote:

> On 27/06/2013 06:06, J. Landman Gay wrote:
>
>> If we ever get the authentication worked out, I'm still not sure how to
>> do a
>> PUT. I'll try putting the data back into the variable and send that.
>>
>
> Hi Jacque,
>
> Are you able to watch your network traffic, eg using WireShark?  I've
> often found this was the quickest way to figure out what was going wrong
> with a network issue with LiveCode - especially if I have the benefit of an
> alternative that worked, so I can see exactly what is sent in a request
> that works, and what's been sent by LiveCode that doesn't work?
>
> FWIW, this is what LiveCode (or rather, LibURL) sends across the network
> for the following LiveCode commands
>
>  put URL "http://www.google.com/test/?**x=123<http://www.google.com/test/?x=123>"
>> into x
>>
>
> GET /test/?x=123 HTTP/1.1
> Host: www.google.com
> User-Agent: LiveCode (MacOS)
>
>  post 123 to URL "http://www.google.com/test/"
>>
>
> POST /test/ HTTP/1.1
> Host: www.google.com
> User-Agent: LiveCode (MacOS)
> Content-Length: 3
> Content-Type:  application/x-www-form-**urlencoded
>
> 123
>
>  put 123 into URL "http://www.google.com/test/"
>>
>
> PUT /test/ HTTP/1.1
> Host: www.google.com
> User-Agent: LiveCode (MacOS)
> Content-Length: 3
> Content-Type:  application/x-www-form-**urlencoded
>
> 123
>
>
>
> ... but really the interesting question is what the request (and response)
> look like when your server person does it from Rails.
>
> Ben
>
>
> ______________________________**_________________
> 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<http://lists.runrev.com/mailman/listinfo/use-livecode>
>


More information about the use-livecode mailing list