PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

HttpRequest::setOptions> <HttpRequest::setHeaders
Last updated: Fri, 05 Sep 2008

view this page in

HttpRequest::setMethod

(PECL pecl_http:0.10.0-1.5.5)

HttpRequest::setMethodSet method

Description

public bool HttpRequest::setMethod ( int $request_method )

Set the request method.

Parameters

request_method

the request method to use

Return Values

Returns TRUE on success or FALSE on failure.



add a note add a note User Contributed Notes
HttpRequest::setMethod
Andy Christianson
29-Jul-2008 03:15
Possible values (pulled from http://us.php.net/manual/en/http.constants.php):

HTTP_METH_GET (integer)
HTTP_METH_HEAD (integer)
HTTP_METH_POST (integer)
HTTP_METH_PUT (integer)
HTTP_METH_DELETE (integer)
HTTP_METH_OPTIONS (integer)
HTTP_METH_TRACE (integer)
HTTP_METH_CONNECT (integer)
HTTP_METH_PROPFIND (integer)
HTTP_METH_PROPPATCH (integer)
HTTP_METH_MKCOL (integer)
HTTP_METH_COPY (integer)
HTTP_METH_MOVE (integer)
HTTP_METH_LOCK (integer)
HTTP_METH_UNLOCK (integer)
HTTP_METH_VERSION_CONTROL (integer)
HTTP_METH_REPORT (integer)
HTTP_METH_CHECKOUT (integer)
HTTP_METH_CHECKIN (integer)
HTTP_METH_UNCHECKOUT (integer)
HTTP_METH_MKWORKSPACE (integer)
HTTP_METH_UPDATE (integer)
HTTP_METH_LABEL (integer)
HTTP_METH_MERGE (integer)
HTTP_METH_BASELINE_CONTROL (integer)
HTTP_METH_MKACTIVITY (integer)
HTTP_METH_ACL (integer)

HttpRequest::setOptions> <HttpRequest::setHeaders
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites