pobieram strone za pomoca:
$fp = @fsockopen($url, 80, $errno, $errstr, 1);
$out = "POST /$fil HTTP/1.1\r\n";
$out .= "Host: $url\r\n";
$out .= "Content-Type: application/x-www-form-urlencoded\r\n";
$out .= "Content-Length: ".strlen($post)."\r\n";
$out .= $post;
$out .= "Connection: Close\r\n\r\n";
//$out .= "Connection: Keep-Alive\r\n\r\n";
fwrite($fp,$out);
Pobiera prawidłowo ale na końcu daje dopisek :
Method Not Implemented
Connection: to Close not supported.
lub
Connection: to Keep-Alive not supported.
Jak pozbyć się tego?
Jak ort! " $out .= "Connection: Close\r\n\r\n";" to łączy się kilka razy wolniej