[Bug 4586] LWP retrieves empty page

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4586





------- Comment #11 from link@pobox.com  2007-05-28 22:40 -------
(In reply to comment #9)
> Could you please test it again?

Sure. I checked a little more in-depth and it looks like the difference is
caused by the value of the 'Connection' HTTP header. When it's 'close' the
server fails to return a body, when the value is 'keep-alive' it performs as
expected.

In the below trace I have elided (marked with “[…]”) irrelevant bits for
clarity:

[[[
  $ telnet 201.79.145.166 8081 
  GET /en/Home.htm HTTP/1.0
  Host: athrasoft.com
  Connection: close

  HTTP/1.1 200 OK
  […]
  Content-Length: 15617

  Connection closed by foreign host.

  $ telnet 201.79.145.166 8081 
  GET /en/Home.htm HTTP/1.0
  Host: athrasoft.com
  Connection: keep-alive

  HTTP/1.1 200 OK
  […]
  Content-Length: 15617

  <!DOCTYPE html […]>
  […]
  <title>&nbsp;AthraSoft Components &bull; Home of SmartPlugin&nbsp;</title>
  […]
]]]

Received on Monday, 28 May 2007 22:40:12 UTC