iic has asked for the wisdom of the Perl Monks concerning the following question:

I did a HTTP1.1 socket.It accepts requests,then keeps on
sending html to user.But it can not work well for
Internet Explorer(use HTTP1.1).That is,it seem to not allow to make two connections to the socket at the same
time. The header I gave back is only "HTTP/1.1 200 OK\n".

BUT,In case of sendding the header "HTTP/1.0 200 OK\n" back
taking the place of the header above,there will be no
problems for IE.

Why?And how do I treat it if I want to use HTTP1.1 yet?
Thanks.

Replies are listed 'Best First'.
Re: about http
by c-era (Curate) on May 26, 2000 at 15:54 UTC
    IE wants a full header (It wants to see if it has a cached copy).
    HTTP/1.1 200 OK Server: <server name> Date: <weekday>, <day> <month> <year> <time> <time zone> Content-Type: text/html Accept-Ranges: bytes Last-Modified: <same format as date> Content-Length: <in octal> # I'm not sure if this line is required.
    You can play around with the above and let me know how it works.