Re: Bug #14872 Updated: Garbage being returned when displaying contents of a url
| From: | Steve Meyers | Date: | Sat, 05 Jan 2002 21:34:45 +0000 |
| Subject: | Re: Bug #14872 Updated: Garbage being returned when displaying contents of a url | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-75973@lists.php.net to get a copy of this message | ||
webmaster@ski-info-online.com wrote:
> ID: 14872
> User updated by: webmaster@ski-info-online.com
> Reported By: webmaster@ski-info-online.com
> Status: Bogus
> Bug Type: Sockets related
> Operating System: RedHat Linux
> PHP Version: 4.0.6
> New Comment:
>
> Steve,
>
> Thanks for the clarification.
>
> I posted this question in a number of forums, including, devsheds,
> phpbuilder, htmlforums, php-general@lists.php.net and it would appear
> that many of us do not understand the intricacies of HTTP 1.1 and HTTP
> 1.0 as no one appeared to be able to identify the cause.
>
> Apologies if this request wasted your time.
>
No problem! I found this out the hard way -- I too was wondering about
performance and funny characters. If you telnet to port 80 of a server and
perform the request manually (for example, GET / HTTP/1.1) you'll notice
that after it sends the page, it waits for a couple seconds before
disconnecting. You'll also notice that in the headers, there is something
about chunked encoding, and also a keep-alive setting.