I am using a program based on the WebServer demo, where I generate my pages.
When using IE as the client (this doesn't happen with FireFox), the
connection is not closed after the page is sent, and the progressbar doesn't
close in IE. Did anybody see something similar? Is there any way to avoid
this?

I am using a code like this one:

var
  Flags: THttpGetFlag;
  i : Integer;
  Body : String;
  Header : String;
begin
  Flags := hgWillSendMySelf;
  Body := '<HTML>' +
          '<HEAD>' +
            '<TITLE>Pagina de teste </TITLE>' +
          '</HEAD>' + #13#10 +
          '<BODY>';
  for i := 1 to 1000 do
    Body := Body + '<br>This is line number '+IntToStr(i);
  Body := Body+'</BODY></HTML>';
  Header := 'Pragma: no-cache' + #13#10 +  
          'Expires: -1'      + #13#10 +
          'Set-Cookie: Usuario=a; path=/;'+ #13#10 +
          'Set-Cookie: Senha=a; path=/;'+ #13#10;
  TMyHttpConnection(Client).AnswerString(Flags,'','',Header,Body);

Bruno


--
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

Reply via email to