128 public function setSslCaCert($caCertPath, $validate_cn =
true);
142 public function send();
getResponseStatusCode()
Answer HTTP status code of the response.
This interface defines a class library for performing web requests.
setPostBody($body)
Add a POST body to the request.
makePost()
Make the request a POST request rather than the default GET request.
send()
Perform the request.
addHeaders(array $headers)
Add an array of header strings to the request.
setSslCaCert($caCertPath, $validate_cn=true)
Specify the path to an SSL CA certificate to validate the server with.
getResponseBody()
Answer the body of response.
addCookie($name, $value)
Add a cookie to the request.
setUrl($url)
Set the URL of the Request.
getResponseHeaders()
Answer the headers of the response.
addCookies(array $cookies)
Add an array of cookies to the request.
getErrorMessage()
Answer a message describing any errors if the request failed.
addHeader($header)
Add a header string to the request.