[Bug 4586] LWP retrieves empty page

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





------- Comment #17 from contact@athrasoft.com  2007-05-29 16:22 -------
Back again!  \\;^)
Just an interesting detail...

THIS WORKS:
 
http://validator.w3.org/check?uri=http://www.athrasoft.com/cgi-bin/Environ.cgi

The dynamically created page above works both with W3C and Validome.
It's a Delphi console application (.exe renamed to .cgi) made by myself.

In the very beginning of the application I write this to the console:
  Content-Type: text/html; charset=windows-1252

The rest (page header and contents) is the same as in all my static (.htm)
pages. Now I think I'll get nuts!!

The final server-generated headers (reported by Validome) differs between
statical and dynamic pages:

STATICAL (.htm):
  HTTP/1.1 200 OK
  Server: Microsoft-IIS/5.0
  Content-Type: text/html; charset=Windows-1252
  Cache-Control: no-cache
  Expires: Tue, 29 May 2007 16:11:59 GMT
  Content-Location: http://201.79.145.166:8081/Default.htm
  Date: Tue, 29 May 2007 16:11:59 GMT
  Content-Type: text/html
  Accept-Ranges: bytes
  Last-Modified: Tue, 29 May 2007 00:19:10 GMT
  ETag: "01347fa86a1c71:893"
  Content-Length: 1618

DYNAMIC (.cgi):
  HTTP/1.1 200 OK
  Server: Microsoft-IIS/5.0
  Date: Tue, 29 May 2007 16:12:03 GMT
  Connection: close
  Content-Type: text/html; charset=Windows-1252  <<-- my cgi did this !!

Maybe something in the server headers for the statical pages hold things that
it shouldn't. I'll investigate it better when I have the courage. \\;^)

Kind regards,
Paulo.

Received on Tuesday, 29 May 2007 16:23:03 UTC