ILIAS
release_4-3 Revision
|
Public Member Functions | |
canFetchURL ($url) | |
Return whether a URL can be fetched. | |
allowedURL ($url) | |
Return whether a URL should be allowed. | |
supportsSSL () | |
Does this fetcher implementation (and runtime) support fetching HTTPS URLs? May inspect the runtime environment. | |
isHTTPS ($url) | |
Is this an https URL? | |
URLHasAllowedScheme ($url) | |
Is this an http or https URL? | |
_findRedirect ($headers, $url) | |
private | |
get ($url, $headers=null) | |
Fetches the specified URL using optional extra headers and returns the server's response. |
Data Fields | |
$timeout = 20 |
Definition at line 43 of file HTTPFetcher.php.
Auth_Yadis_HTTPFetcher::_findRedirect | ( | $headers, | |
$url | |||
) |
private
Definition at line 117 of file HTTPFetcher.php.
Referenced by Auth_Yadis_PlainHTTPFetcher\get(), and Auth_Yadis_ParanoidHTTPFetcher\get().
Auth_Yadis_HTTPFetcher::allowedURL | ( | $url | ) |
Return whether a URL should be allowed.
Override this method to conform to your local policy.
By default, will attempt to fetch any http or https URL.
Definition at line 77 of file HTTPFetcher.php.
Referenced by Auth_Yadis_ParanoidHTTPFetcher\get().
Auth_Yadis_HTTPFetcher::canFetchURL | ( | $url | ) |
Return whether a URL can be fetched.
Returns false if the URL scheme is not allowed or is not supported by this fetcher implementation; returns true otherwise.
Definition at line 54 of file HTTPFetcher.php.
Referenced by Auth_Yadis_PlainHTTPFetcher\get(), Auth_Yadis_ParanoidHTTPFetcher\get(), Auth_Yadis_PlainHTTPFetcher\post(), and Auth_Yadis_ParanoidHTTPFetcher\post().
Auth_Yadis_HTTPFetcher::get | ( | $url, | |
$headers = null |
|||
) |
Fetches the specified URL using optional extra headers and returns the server's response.
string | $url | The URL to be fetched. |
array | $extra_headers | An array of header strings (e.g. "Accept: text/html"). |
Reimplemented in Auth_Yadis_ParanoidHTTPFetcher, and Auth_Yadis_PlainHTTPFetcher.
Definition at line 168 of file HTTPFetcher.php.
Auth_Yadis_HTTPFetcher::isHTTPS | ( | $url | ) |
Is this an https URL?
private
Definition at line 99 of file HTTPFetcher.php.
Referenced by Auth_Yadis_ParanoidHTTPFetcher\get(), and Auth_Yadis_ParanoidHTTPFetcher\post().
Auth_Yadis_HTTPFetcher::supportsSSL | ( | ) |
Does this fetcher implementation (and runtime) support fetching HTTPS URLs? May inspect the runtime environment.
Reimplemented in Auth_Yadis_ParanoidHTTPFetcher, and Auth_Yadis_PlainHTTPFetcher.
Definition at line 89 of file HTTPFetcher.php.
Auth_Yadis_HTTPFetcher::URLHasAllowedScheme | ( | $url | ) |
Is this an http or https URL?
private
Definition at line 109 of file HTTPFetcher.php.
Auth_Yadis_HTTPFetcher::$timeout = 20 |
Definition at line 45 of file HTTPFetcher.php.
Referenced by Auth_Yadis_PlainHTTPFetcher\get(), and Auth_Yadis_ParanoidHTTPFetcher\get().