Öffentliche Methoden | |
canFetchURL ($url) | |
allowedURL ($url) | |
supportsSSL () | |
isHTTPS ($url) | |
URLHasAllowedScheme ($url) | |
_findRedirect ($headers) | |
get ($url, $headers=null) | |
Datenfelder | |
$timeout = 20 |
Definiert in Zeile 43 der Datei HTTPFetcher.php.
_findRedirect | ( | $ | headers | ) |
private
Definiert in Zeile 117 der Datei HTTPFetcher.php.
00119 { 00120 foreach ($headers as $line) { 00121 if (strpos(strtolower($line), "location: ") === 0) { 00122 $parts = explode(" ", $line, 2); 00123 return $parts[1]; 00124 } 00125 } 00126 return null;
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.
Definiert in Zeile 77 der Datei HTTPFetcher.php.
00079 { 00080 return $this->URLHasAllowedScheme($url);
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.
Definiert in Zeile 54 der Datei HTTPFetcher.php.
00056 { 00057 if ($this->isHTTPS($url) && !$this->supportsSSL()) { 00058 Auth_OpenID::log("HTTPS URL unsupported fetching %s", 00059 $url); 00060 return false; 00061 } 00062 00063 if (!$this->allowedURL($url)) { 00064 Auth_OpenID::log("URL fetching not allowed for '%s'", 00065 $url); 00066 return false; 00067 } 00068 00069 return true;
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"). |
Erneute Implementation in Auth_Yadis_ParanoidHTTPFetcher und Auth_Yadis_PlainHTTPFetcher.
Definiert in Zeile 140 der Datei HTTPFetcher.php.
isHTTPS | ( | $ | url | ) |
supportsSSL | ( | ) |
Does this fetcher implementation (and runtime) support fetching HTTPS URLs? May inspect the runtime environment.
Erneute Implementation in Auth_Yadis_ParanoidHTTPFetcher und Auth_Yadis_PlainHTTPFetcher.
Definiert in Zeile 89 der Datei HTTPFetcher.php.
URLHasAllowedScheme | ( | $ | url | ) |
$timeout = 20 |
Definiert in Zeile 45 der Datei HTTPFetcher.php.
Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved. MyOOS [Shopsystem] is Free Software released under the GNU/GPL License. Webmaster: info@r23.de (Impressum) |
|