CGI question: http "PUT" and "DELETE"

Andre Garzia andre at andregarzia.com
Wed Jun 27 17:39:35 EDT 2007


David,
it's fairly easy. If you're serving using apache just check the
$REQUEST_METHOD environment variable, it will contain the method used to
access your cgi.

Like:

switch $REQUEST_METHOD
case "POST"
-- do post stuff
break
case "PUT"
-- do put stuff
break
case "DELETE"
...

and so on...

hope I helped.

Andre

On 6/27/07, David Bovill <david at openpartnership.net> wrote:
>
> I want to create a Rev based CGI - and I know how it works with an http
> "POST" or "GET" - but is there a way to do http "DELETE" and "PUT" (not
> http) - and if so how do you write the cgi to handler these http requests?
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list