|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
This interface defines a class library for performing web requests. More...
Inheritance diagram for CAS_Request_RequestInterface:
Collaboration diagram for CAS_Request_RequestInterface:Public Member Functions | |
| setUrl ($url) | |
| Set the URL of the Request. More... | |
| addCookie ($name, $value) | |
| Add a cookie to the request. More... | |
| addCookies (array $cookies) | |
| Add an array of cookies to the request. More... | |
| addHeader ($header) | |
| Add a header string to the request. More... | |
| addHeaders (array $headers) | |
| Add an array of header strings to the request. More... | |
| makePost () | |
| Make the request a POST request rather than the default GET request. More... | |
| setPostBody ($body) | |
| Add a POST body to the request. More... | |
| setSslCaCert ($caCertPath, $validate_cn=true) | |
| Specify the path to an SSL CA certificate to validate the server with. More... | |
| send () | |
| Perform the request. More... | |
| getResponseHeaders () | |
| Answer the headers of the response. More... | |
| getResponseStatusCode () | |
| Answer HTTP status code of the response. More... | |
| getResponseBody () | |
| Answer the body of response. More... | |
| getErrorMessage () | |
| Answer a message describing any errors if the request failed. More... | |
This interface defines a class library for performing web requests.
Definition at line 40 of file RequestInterface.php.
| CAS_Request_RequestInterface::addCookie | ( | $name, | |
| $value | |||
| ) |
Add a cookie to the request.
| string | $name | name of cookie |
| string | $value | value of cookie |
| CAS_OutOfSequenceException | If called after the Request has been sent. |
Reimplemented in CAS_Request_AbstractRequest.
| 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')
| array | $cookies | cookies to add |
| CAS_OutOfSequenceException | If called after the Request has been sent. |
Reimplemented in CAS_Request_AbstractRequest.
| CAS_Request_RequestInterface::addHeader | ( | $header | ) |
Add a header string to the request.
| string | $header | header to add |
| CAS_OutOfSequenceException | If called after the Request has been sent. |
Reimplemented in CAS_Request_AbstractRequest.
Referenced by CAS_ProxiedService_Http_Post\populateRequest().
Here is the caller graph for this function:| CAS_Request_RequestInterface::addHeaders | ( | array | $headers | ) |
Add an array of header strings to the request.
| array | $headers | headers to add |
| CAS_OutOfSequenceException | If called after the Request has been sent. |
Reimplemented in CAS_Request_AbstractRequest.
| CAS_Request_RequestInterface::getErrorMessage | ( | ) |
Answer a message describing any errors if the request failed.
| CAS_OutOfSequenceException | If called before the Request has been sent. |
Reimplemented in CAS_Request_AbstractRequest.
| CAS_Request_RequestInterface::getResponseBody | ( | ) |
Answer the body of response.
| CAS_OutOfSequenceException | If called before the Request has been sent. |
Reimplemented in CAS_Request_AbstractRequest.
| CAS_Request_RequestInterface::getResponseHeaders | ( | ) |
Answer the headers of the response.
| CAS_OutOfSequenceException | If called before the Request has been sent. |
Reimplemented in CAS_Request_AbstractRequest.
| CAS_Request_RequestInterface::getResponseStatusCode | ( | ) |
Answer HTTP status code of the response.
| CAS_OutOfSequenceException | If called before the Request has been sent. |
Reimplemented in CAS_Request_AbstractRequest.
| CAS_Request_RequestInterface::makePost | ( | ) |
Make the request a POST request rather than the default GET request.
| CAS_OutOfSequenceException | If called after the Request has been sent. |
Reimplemented in CAS_Request_AbstractRequest.
Referenced by CAS_ProxiedService_Http_Post\populateRequest().
Here is the caller graph for this function:| CAS_Request_RequestInterface::send | ( | ) |
Perform the request.
| CAS_OutOfSequenceException | If called multiple times. |
Reimplemented in CAS_Request_AbstractRequest.
| CAS_Request_RequestInterface::setPostBody | ( | $body | ) |
Add a POST body to the request.
| string | $body | body to add |
| CAS_OutOfSequenceException | If called after the Request has been sent. |
Reimplemented in CAS_Request_AbstractRequest.
Referenced by CAS_ProxiedService_Http_Post\populateRequest().
Here is the caller graph for this function:| CAS_Request_RequestInterface::setSslCaCert | ( | $caCertPath, | |
$validate_cn = true |
|||
| ) |
Specify the path to an SSL CA certificate to validate the server with.
| string | $caCertPath | path to cert file |
| boolean | $validate_cn | validate CN of SSL certificate |
| CAS_OutOfSequenceException | If called after the Request has been sent. |
Reimplemented in CAS_Request_AbstractRequest.
| CAS_Request_RequestInterface::setUrl | ( | $url | ) |
Set the URL of the Request.
| string | $url | url to set |
| CAS_OutOfSequenceException | If called after the Request has been sent. |
Reimplemented in CAS_Request_AbstractRequest.