Previous Page
setMaxRedirects()

Solar_Http_Request_Adapter
setMethod()

Next Page
setProxy()

setMethod()

public Solar_Http_Request_Adapter setMethod ( string $method )

Sets the HTTP method for the request (GET, POST, etc).

Parameters

  • (string) $method: The method to use for the request.

Returns

  • (Solar_Http_Request_Adapter) This adapter object.

Description

Sets the HTTP method for the request (GET, POST, etc).

Recgonized methods are 'OPTIONS', 'GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'TRACE', and 'CONNECT'.