phpCAS
version 1.4.0
|
Public Member Functions | |
setCurlOptions (array $options) | |
initAndConfigure () | |
_storeResponseBody ($body) | |
_curlReadHeaders ($ch, $header) | |
![]() | |
setUrl ($url) | |
addCookie ($name, $value) | |
addCookies (array $cookies) | |
addHeader ($header) | |
addHeaders (array $headers) | |
makePost () | |
setPostBody ($body) | |
setSslCaCert ($caCertPath, $validate_cn=true) | |
send () | |
getResponseHeaders () | |
getResponseStatusCode () | |
getResponseBody () | |
getErrorMessage () | |
![]() | |
setUrl ($url) | |
addCookie ($name, $value) | |
addCookies (array $cookies) | |
addHeader ($header) | |
addHeaders (array $headers) | |
makePost () | |
setPostBody ($body) | |
setSslCaCert ($caCertPath, $validate_cn=true) | |
send () | |
getResponseHeaders () | |
getResponseStatusCode () | |
getResponseBody () | |
getErrorMessage () | |
Protected Member Functions | |
sendRequest () | |
![]() | |
sendRequest () | |
storeResponseHeaders (array $headers) | |
storeResponseHeader ($header) | |
storeResponseBody ($body) | |
storeErrorMessage ($message) | |
Private Attributes | |
$_curlOptions = array() | |
Additional Inherited Members | |
![]() | |
$url = null | |
$cookies = array() | |
$headers = array() | |
$isPost = false | |
$postBody = null | |
$caCertPath = null | |
$validateCN = true | |
Provides support for performing web-requests via curl
Definition at line 40 of file CurlRequest.php.
CAS_Request_CurlRequest::_curlReadHeaders | ( | $ch, | |
$header | |||
) |
Internal method for capturing the headers from a curl request.
resource | $ch | handle of curl |
string | $header | header |
Definition at line 195 of file CurlRequest.php.
References CAS_Request_AbstractRequest\storeResponseHeader().
CAS_Request_CurlRequest::_storeResponseBody | ( | $body | ) |
Store the response body. This method should NOT be used outside of the CurlRequest or the CurlMultiRequest.
string | $body | body to stor |
Definition at line 182 of file CurlRequest.php.
References CAS_Request_AbstractRequest\storeResponseBody().
CAS_Request_CurlRequest::initAndConfigure | ( | ) |
Internal method to initialize our cURL handle and configure the request. This method should NOT be used outside of the CurlRequest or the CurlMultiRequest.
Definition at line 102 of file CurlRequest.php.
References phpCAS\trace().
Referenced by sendRequest().
|
protected |
Send the request and store the results.
Definition at line 63 of file CurlRequest.php.
References initAndConfigure(), CAS_Request_AbstractRequest\storeErrorMessage(), CAS_Request_AbstractRequest\storeResponseBody(), phpCAS\trace(), phpCAS\traceBegin(), and phpCAS\traceEnd().
CAS_Request_CurlRequest::setCurlOptions | ( | array | $options | ) |
Set additional curl options
array | $options | option to set |
Definition at line 52 of file CurlRequest.php.
|
private |
Definition at line 56 of file CurlRequest.php.