HTTP-Header Problem
| From: | Thomas Weber | Date: | Fri, 23 May 2003 04:19:16 +0000 |
| Subject: | HTTP-Header Problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-148693@lists.php.net to get a copy of this message | ||
Hi,
i'm trying to write some kind of webserver for use in a chatsystem.
The HTTP-header sent by browser is fetched with this:
$header = trim (socket_read ($this->socket, $server["socket_maxline"]));
This works wonderful in most cases, but for some odd reason, Mozilla (1.3)
doesn't send any POST-data in the first "wave", so i need to do another
socket_read () to get it.
Problem: When i add a second socket_read and no data is to be sent by the
browser, the script blocks forever.... :-/
Any idea?
Thanks,
Thomas 'Neo' Weber
---
thomas@youngarts.org
neo@gothic-chat.de