Lines Matching refs:headers

73 	var	$headers		=	array();			// headers returned from server sent here  variable in Snoopy
787 $headers = $http_method." ".$url." ".$this->_httpversion."\r\n";
789 $headers .= "User-Agent: ".$this->agent."\r\n";
791 $headers .= "Host: ".$this->host;
793 $headers .= ":".$this->port;
794 $headers .= "\r\n";
797 $headers .= "Accept: ".$this->accept."\r\n";
799 $headers .= "Referer: ".$this->referer."\r\n";
811 $headers .= substr($cookie_headers,0,-2) . "\r\n";
819 $headers .= $headerKey.": ".$headerVal."\r\n";
822 $headers .= "Content-type: $content_type";
824 $headers .= "; boundary=".$this->_mime_boundary;
825 $headers .= "\r\n";
828 $headers .= "Content-length: ".strlen($body)."\r\n";
830 $headers .= "Authorization: Basic ".base64_encode($this->user.":".$this->pass)."\r\n";
834 …$headers .= 'Proxy-Authorization: ' . 'Basic ' . base64_encode($this->proxy_user . ':' . $this->pr…
837 $headers .= "\r\n";
844 fwrite($fp,$headers.$body,strlen($headers.$body));
847 unset($this->headers);
889 $this->headers[] = $currentHeader;
946 $headers = array();
954 $headers[] = "User-Agent: ".$this->agent;
957 $headers[] = "Host: ".$this->host.":".$this->port;
959 $headers[] = "Host: ".$this->host;
961 $headers[] = "Accept: ".$this->accept;
963 $headers[] = "Referer: ".$this->referer;
975 $headers[] = substr($cookie_str,0,-2);
983 $headers[] = $headerKey.": ".$headerVal;
987 $headers[] = "Content-type: $content_type; boundary=".$this->_mime_boundary;
989 $headers[] = "Content-type: $content_type";
992 $headers[] = "Content-length: ".strlen($body);
994 $headers[] = "Authorization: BASIC ".base64_encode($this->user.":".$this->pass);
996 for($curr_header = 0; $curr_header < count($headers); $curr_header++) {
997 $safer_header = strtr( $headers[$curr_header], "\"", " " );
1023 unset($this->headers);
1051 $this->headers[] = $result_headers[$currentHeader];
1087 for($x=0; $x<count($this->headers); $x++)
1089 if(preg_match('/^set-cookie:[\s]+([^=]+)=([^;]+)/i', $this->headers[$x],$match))