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
-
Reimplemented in CAS_Request_AbstractRequest.
◆ 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
-
Reimplemented in CAS_Request_AbstractRequest.
◆ addHeader()
CAS_Request_RequestInterface::addHeader |
( |
|
$header | ) |
|
Add a header string to the request.
- Parameters
-
string | $header | header to add |
- Returns
- void
- Exceptions
-
Reimplemented in CAS_Request_AbstractRequest.
◆ 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
-
Reimplemented in CAS_Request_AbstractRequest.
◆ getErrorMessage()
CAS_Request_RequestInterface::getErrorMessage |
( |
| ) |
|
◆ getResponseBody()
CAS_Request_RequestInterface::getResponseBody |
( |
| ) |
|
◆ getResponseHeaders()
CAS_Request_RequestInterface::getResponseHeaders |
( |
| ) |
|
◆ getResponseStatusCode()
CAS_Request_RequestInterface::getResponseStatusCode |
( |
| ) |
|
◆ makePost()
CAS_Request_RequestInterface::makePost |
( |
| ) |
|
Make the request a POST request rather than the default GET request.
- Returns
- void
- Exceptions
-
Reimplemented in CAS_Request_AbstractRequest.
◆ send()
CAS_Request_RequestInterface::send |
( |
| ) |
|
◆ 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
-
Reimplemented in CAS_Request_AbstractRequest.
◆ setUrl()
CAS_Request_RequestInterface::setUrl |
( |
|
$url | ) |
|
The documentation for this class was generated from the following file: