Hello Bruno, I'm just bsy in a rather large project using THttpSrv, and this is exact copy of what I send in all my virtual pages:
Header := Cli.Version + ' 200 OK'#13#10 + 'Content-Type: text/html'#13#10 + 'Content-Length: ' + IntToStr(DocLen) + #13#10 + 'Cache-control: no-cache'#13#10#13#10; The cache control is because IE 6 bug that it does not wants to refresh the page. About the keep-alive. I noticed when I tryed the project with the virtual page of 5000 lines, and when I run the server on a slow machine (PII300) IE timed out a few times. Maybe the documents ar all large and take a lot of time to build them ?? I did not check the code with the tests. I dont know if that could has something to do with it. --- Rgds, Wilfried http://www.mestdagh.biz Sunday, May 22, 2005, 21:10, Bruno Sonnino wrote: > Finally, I could find what was causing the problem here - I still don't know > why, but at least I could fix it. > I analyzed the header files sent by a virtual page and an identical real > page. The difference was the virtual page was not sending three lines: > Accept-Ranges: bytes > Last-Modified: Sun, 22 May 2005 14:56:22 GMT > Connection: Keep-Alive > Then I added these to my header in the virtual page and everything worked > fine. I've tracked that the only one needed is "Connection: Keep-Alive", the > others don't make any difference. If anybody knows why this line is needed, > I'll be pleased to know. > I'd like to thank everybody who helped me to track this thing. > Bruno > On 22/5/2005 14:38:47, Bruno Sonnino ([EMAIL PROTECTED]) wrote: >> I begin to think that this is the problem - I was thinking two options: >> something with the Brazilian Portuguese version of IE, or something with >> a >> program that intercepts communications, like an antivirus. >> The only questions that remain are: why does this happen only with >> virtual >> pages and not with documents? Why does this happen only with IE and not >> with >> FireFox? >> >> Bruno >> On 22/5/2005 13:05:52, Wilfried Mestdagh ([EMAIL PROTECTED]) wrote: >> > Hello Bruno, >> > >> > I just downloaded the demo from Francois, and tryed the server on 3 >> > different machines (NT, W2K, XP), and every time connected with the 3 >> > machines with IE (different versions) to the server/bruno.html. Works >> > every time here. >> > >> > Also I have a several project with the HttpSrv without problem. so it >> > must be something on machines. Precides windows firewall witch does not >> > give many problems, a lots of virus scanners can give TCP problems. >> > >> > --- >> > Rgds, Wilfried >> > http://www.mestdagh.biz >> > >> > Sunday, May 22, 2005, 17:23, Bruno Sonnino wrote: >> > >> > > My system has all updates, but this happens also on other machines (I > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be