This interface defines a class library for performing web requests.
More...
This interface defines a class library for performing web requests.
Definition at line 40 of file RequestInterface.php.
◆ addCookie()
CAS_Request_RequestInterface::addCookie |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
Add a cookie to the request.
- Parameters
-
string | $name | name of cookie |
string | $value | value of cookie |
- Returns
- void
- Exceptions
-
◆ addCookies()
CAS_Request_RequestInterface::addCookies |
( |
array |
$cookies | ) |
|
Add an array of cookies to the request.
The cookie array is of the form array('cookie_name' => 'cookie_value', 'cookie_name2' => cookie_value2')
- Parameters
-
array | $cookies | cookies to add |
- Returns
- void
- Exceptions
-
◆ addHeader()
CAS_Request_RequestInterface::addHeader |
( |
|
$header | ) |
|
◆ addHeaders()
CAS_Request_RequestInterface::addHeaders |
( |
array |
$headers | ) |
|
Add an array of header strings to the request.
- Parameters
-
array | $headers | headers to add |
- Returns
- void
- Exceptions
-
◆ getErrorMessage()
CAS_Request_RequestInterface::getErrorMessage |
( |
| ) |
|
Answer a message describing any errors if the request failed.
- Returns
- string
- Exceptions
-
◆ getResponseBody()
CAS_Request_RequestInterface::getResponseBody |
( |
| ) |
|
Answer the body of response.
- Returns
- string
- Exceptions
-
◆ getResponseHeaders()
CAS_Request_RequestInterface::getResponseHeaders |
( |
| ) |
|
Answer the headers of the response.
- Returns
- array An array of header strings.
- Exceptions
-
◆ getResponseStatusCode()
CAS_Request_RequestInterface::getResponseStatusCode |
( |
| ) |
|
Answer HTTP status code of the response.
- Returns
- int
- Exceptions
-
◆ makePost()
CAS_Request_RequestInterface::makePost |
( |
| ) |
|
◆ send()
CAS_Request_RequestInterface::send |
( |
| ) |
|
Perform the request.
- Returns
- bool TRUE on success, FALSE on failure.
- Exceptions
-
◆ setPostBody()
CAS_Request_RequestInterface::setPostBody |
( |
|
$body | ) |
|
◆ setSslCaCert()
CAS_Request_RequestInterface::setSslCaCert |
( |
|
$caCertPath, |
|
|
|
$validate_cn = true |
|
) |
| |
Specify the path to an SSL CA certificate to validate the server with.
- Parameters
-
string | $caCertPath | path to cert file |
boolean | $validate_cn | validate CN of SSL certificate |
- Returns
- void
- Exceptions
-
◆ setUrl()
CAS_Request_RequestInterface::setUrl |
( |
|
$url | ) |
|
Set the URL of the Request.
- Parameters
-
- Returns
- void
- Exceptions
-
The documentation for this class was generated from the following file: