Helma logo
helma.org » Home > Stories > req.getMethod()

req.getMethod()

Returns the HTTP method of the current request as string, or a Helma-pseudo method for scheduler and XML-RPC requests.

Syntax
req.getMethod()

Alternatively, this function be accessed as property from JavaScript:

req.method

Possible return values are "GET", "POST", "DELETE", "HEAD", "PUT" for HTTP methods and "XMLRPC", "EXTERNAL", "INTERNAL" for Helma pseudo methods.

Example
res.write(req.getMethod());

GET


... comment


Page last modified on 2005-02-01 14:48 by hns