Lines Matching refs:url
55 function canFetchURL($url) argument
57 if ($this->isHTTPS($url) && !$this->supportsSSL()) {
59 $url);
63 if (!$this->allowedURL($url)) {
65 $url);
78 function allowedURL($url) argument
80 return $this->URLHasAllowedScheme($url);
100 function isHTTPS($url) argument
102 return (bool)preg_match('/^https:\/\//i', $url);
110 function URLHasAllowedScheme($url) argument
112 return (bool)preg_match('/^https?:\/\//i', $url);
118 function _findRedirect($headers, $url) argument
127 $hpos = strpos($url, "://");
128 $prt = substr($url, 0, $hpos+3);
129 $url = substr($url, $hpos+3);
132 $fspos = strpos($url, "/");
133 if ($fspos) $loc = $prt.substr($url, 0, $fspos).$loc;
134 else $loc = $prt.$url.$loc;
139 $xpos = strpos($url, "/");
141 $apos = strpos($url, "?");
143 $apos = strpos($url, "&");
145 $pp .= substr($url, 0, $xpos+1);
146 $url = substr($url, $xpos+1);
161 * @param string $url The URL to be fetched.
169 function get($url, $headers = null) argument