List of all members.
Detailed Description
This interface defines a class library for performing web requests.
Definition at line 34 of file RequestInterface.php.
Member Function Documentation
CAS_RequestInterface::addCookie |
( |
$ |
name, |
|
|
$ |
value | |
|
) |
| | |
Add a cookie to the request.
- Parameters:
-
| string | $name |
| string | $value |
- Returns:
- void
- Exceptions:
-
Implemented in CAS_AbstractRequest.
CAS_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:
-
- Returns:
- void
- Exceptions:
-
Implemented in CAS_AbstractRequest.
CAS_RequestInterface::addHeader |
( |
$ |
header |
) |
|
CAS_RequestInterface::addHeaders |
( |
array $ |
headers |
) |
|
Add an array of header strings to the request.
- Parameters:
-
- Returns:
- void
- Exceptions:
-
Implemented in CAS_AbstractRequest.
CAS_RequestInterface::getErrorMessage |
( |
|
) |
|
Answer a message describing any errors if the request failed.
- Returns:
- string
- Exceptions:
-
Implemented in CAS_AbstractRequest.
CAS_RequestInterface::getResponseBody |
( |
|
) |
|
CAS_RequestInterface::getResponseHeaders |
( |
|
) |
|
Answer the headers of the response.
- Returns:
- array An array of header strings.
- Exceptions:
-
Implemented in CAS_AbstractRequest.
CAS_RequestInterface::getResponseStatusCode |
( |
|
) |
|
Answer HTTP status code of the response
- Returns:
- integer
- Exceptions:
-
Implemented in CAS_AbstractRequest.
CAS_RequestInterface::makePost |
( |
|
) |
|
CAS_RequestInterface::send |
( |
|
) |
|
Perform the request.
- Returns:
- boolean TRUE on success, FALSE on failure.
- Exceptions:
-
Implemented in CAS_AbstractRequest.
CAS_RequestInterface::setPostBody |
( |
$ |
body |
) |
|
CAS_RequestInterface::setSslCaCert |
( |
$ |
caCertPath |
) |
|
Specify the path to an SSL CA certificate to validate the server with.
- Parameters:
-
- Returns:
- void
- Exceptions:
-
Implemented in CAS_AbstractRequest.
CAS_RequestInterface::setUrl |
( |
$ |
url |
) |
|
Set the URL of the Request
- Parameters:
-
- Returns:
- void
- Exceptions:
-
Implemented in CAS_AbstractRequest.