Lines Matching refs:headers
78 $headers = array(
93 $headers[] = $h;
105 fputs($sock, implode("\r\n", $headers) . "\r\n\r\n");
118 list($headers, $body) = explode("\r\n\r\n", $data, 2);
119 $headers = explode("\r\n", $headers);
121 $http_code = explode(" ", $headers[0]);
125 $url = $this->_findRedirect($headers, $url);
136 foreach ($headers as $header) {
159 $headers = array();
166 $headers[] = "POST ".$post_path." HTTP/1.0";
167 $headers[] = "Host: " . $parts['host'];
168 $headers[] = "Content-type: application/x-www-form-urlencoded";
169 $headers[] = "Content-length: " . strval(strlen($body));
173 $headers = array_merge($headers, $extra_headers);
177 $all_headers = implode("\r\n", $headers);
224 list($headers, $response_body) = explode("\r\n\r\n", $response, 2);
226 $headers = explode("\r\n", $headers);
231 $http_code = explode(" ", $headers[0]);
236 foreach ($headers as $header) {