Class Rest_Client Wraps HTTP calls using cURL, aimed for accessing and testing RESTful webservice.
__construct()
treatURL()
treatResponse($r)
getHeaders()
getResponse()
getResponseCode()
getResponseMessage()
getResponseContentType()
setContentType(string $contentType) : \Rest\Client
setCredentials(string $user, string $pass) : \Rest\Client
setMethod(string $method) : \Rest\Client
setParameters(mixed $params) : \Rest\Client
createClient(string $url = null) : \Rest\Client
post(string $url, mixed $params = null, string $user = null, string $password = null, string $contentType = "application/x-www-form-urlencoded") : \Rest\Client
string
mixed
string
string
string
\Rest\Client
put(string $url, string $body, string $user = null, string $password = null, string $contentType = null) : \Rest\Client
string
string
string
string
string
\Rest\Client
get(string $url, array $params = null, string $user = null, string $password = null) : \Rest\Client
delete(string $url, array $params = null, string $user = null, string $password = null) : \Rest\Client
call(string $method, string $url, string $body, string $user = null, string $password = null, string $contentType = null) : \Rest\Client
string
string
string
string
string
string
\Rest\Client
curl
url
response
headers
method
params
contentType
file