DELETE, PUT http

Trevor DeVore lists at mangomultimedia.com
Mon Apr 4 09:52:42 EDT 2011


On Mon, Apr 4, 2011 at 9:44 AM, Mark Schonewille <
m.schonewille at economy-x-talk.com> wrote:

> Thanks, Trevor. I've just tried it in 4.0 and it doesn't work there. I
> guess it is a new feature.


I don't think it is new as I found out about support a while ago (at least
4.x, probably 3.x). I don't have 4.0 installed any longer though so I can't
confirm that at the moment.

How was your test set up? Below are the results I see in the field targeted
by libURLSetLogField when executing a PUT or DELETE call.

Testing PUT:

put "what" into url "http://google.com"

*********************
PUT / HTTP/1.1
Host: google.com
User-Agent: LiveCode (MacOS)
Content-Length: 4
Content-Type:  application/x-www-form-urlencoded


HTTP/1.1 405 Method Not Allowed
Content-Type: text/html; charset=UTF-8
Content-Length: 1390
Date: Mon, 04 Apr 2011 13:47:26 GMT
Server: GFE/2.0
Connection: close
*********************

Testing DELETE:

delete url "http://google.com"

*********************
DELETE / HTTP/1.1
Host: google.com
User-Agent: LiveCode (MacOS)


HTTP/1.1 405 Method Not Allowed
Content-Type: text/html; charset=UTF-8
Content-Length: 1393
Date: Mon, 04 Apr 2011 13:49:35 GMT
Server: GFE/2.0
*********************

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
LiveCode Resources for Developers: http://livecode.bluemangolearning.com



More information about the use-livecode mailing list