Hallo everybody,
I have a problem with a little socket script.
----- snipp -----
$out_clients[$i]['socket'] = socket_accept($ socket_out);
$http_welcome = "HTTP/1.0 200 OK\r\nContent-type: text/html\r\n\r\n";
$http_welcome .= "<html><head><t itle>test</title></head><body><h1> Test</h1>";
socket_write($o ut_clients[$i]['socket'], $http_welcome);
----- snipp -----
Mozilla works fine: If I open http://server:2323 ($socket_out listens
on this port), I'll get a connection, Mozilla displays the simple page
and the connection keeps open. Every time I write new data into the
socket, Mozilla displays them.
But MS IE doesn't work! I only see a blank page. If I close the socket
after sending the header and page, IE will displays the page.
Has anyone an idea what my problem is?
Greetz, TIA
Dennis
I have a problem with a little socket script.
----- snipp -----
$out_clients[$i]['socket'] = socket_accept($ socket_out);
$http_welcome = "HTTP/1.0 200 OK\r\nContent-type: text/html\r\n\r\n";
$http_welcome .= "<html><head><t itle>test</title></head><body><h1> Test</h1>";
socket_write($o ut_clients[$i]['socket'], $http_welcome);
----- snipp -----
Mozilla works fine: If I open http://server:2323 ($socket_out listens
on this port), I'll get a connection, Mozilla displays the simple page
and the connection keeps open. Every time I write new data into the
socket, Mozilla displays them.
But MS IE doesn't work! I only see a blank page. If I close the socket
after sending the header and page, IE will displays the page.
Has anyone an idea what my problem is?
Greetz, TIA
Dennis
Comment