Re: Keep alive connection in Delphi 5 - WeOnlyDo Discussion board

Re: Keep alive connection in Delphi 5 (General questions)

by wodDamir, Monday, February 04, 2008, 17:22 (6136 days ago) @ Michal

Michal,

I've just checked. The following code:

[code] wodHttpDLXCom1.Hostname := 'www.weonlydo.com';
wodHttpDLXCom1.HTTPversion := 'HTTP/1.1';
wodHttpDLXCom1.Blocking := true;
wodHttpDLXCom1.KeepAlive := 1;
wodHttpDLXCom1.Connect1;
wodHttpDLXCom1.Get;[/code]

remains connected to server. You can verify that by checking the component State property. Something like this:

[code]label1.Caption := wodHttpDLXCom1.StateString(wodHttpDLXCom1.State);[/code]

Can you try that?

Regards,
Damba


Complete thread: