Solar_Http_Request_Adapter_Curl::setMethod()

public Solar_Http_Request_Adapter Solar_Http_Request_Adapter_Curl::setMethod ( string $method )

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

Inherited from Solar_Http_Request_Adapter.

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, GET, POST, PUT, DELETE, TRACE, OPTIONS, COPY, LOCK, MKCOL, MOVE, PROPFIND, PROPPATCH AND UNLOCK.



Local