Hi,
I am trying to send data to a webserver and recieve some data back. This is the part I send:
$p = "GET /index.html HTTP/1.1\r\n";
$p.= "Accept: /\r\n";
$p.= "User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)\r\n";
$p.= "Host: examplesite.com\r\n";
$p.= "Connection: Keep-Alive\r\n";
$p.= "\r\n";
The problem lays on this line:
$p.= "Host: examplesite.com\r\n";
When I run it with this line, Netscape waits for the PHP page to respong, but it never does, it seems like the feof funcion gets hung up when the text "Host:" is found. When I take out the colon or all of it, it works. I need to send this line, so what should I do? Any ideas? Is this a bug?
Thanks,
Karl Timmermann
timmerk@tcimet.net