Lines Matching refs:fp
92 $fp = curl_init();
98 curl_setopt($fp, CURLOPT_ENCODING, '');
100 curl_setopt($fp, CURLOPT_URL, $url);
101 curl_setopt($fp, CURLOPT_HEADER, 1);
102 curl_setopt($fp, CURLOPT_RETURNTRANSFER, 1);
103 curl_setopt($fp, CURLOPT_FAILONERROR, 1);
104 curl_setopt($fp, CURLOPT_TIMEOUT, $timeout);
105 curl_setopt($fp, CURLOPT_CONNECTTIMEOUT, $timeout);
106 curl_setopt($fp, CURLOPT_REFERER, \SimplePie\Misc::url_remove_credentials($url));
107 curl_setopt($fp, CURLOPT_USERAGENT, $useragent);
108 curl_setopt($fp, CURLOPT_HTTPHEADER, $headers2);
110 curl_setopt($fp, $curl_param, $curl_value);
113 $this->headers = curl_exec($fp);
114 if (curl_errno($fp) === 23 || curl_errno($fp) === 61) {
115 curl_setopt($fp, CURLOPT_ENCODING, 'none');
116 $this->headers = curl_exec($fp);
118 $this->status_code = curl_getinfo($fp, CURLINFO_HTTP_CODE);
119 if (curl_errno($fp)) {
120 $this->error = 'cURL error ' . curl_errno($fp) . ': ' . curl_error($fp);
124 if ($info = curl_getinfo($fp)) {
127 curl_close($fp);
155 $fp = @fsockopen($socket_host, $url_parts['port'], $errno, $errstr, $timeout);
156 if (!$fp) {
160 stream_set_timeout($fp, $timeout);
184 fwrite($fp, $out);
186 $info = stream_get_meta_data($fp);
190 $this->headers .= fread($fp, 1160);
191 $info = stream_get_meta_data($fp);
244 fclose($fp);