Keep alive connection in Delphi 5 - WeOnlyDo Discussion board

Keep alive connection in Delphi 5 (General questions)

by Michal, Monday, February 04, 2008, 15:27 (6137 days ago)

Hi,
I am not able to keep connection alive.
1. attempt:
wodHttp1.Blocking := True;
wodHttp1.URL := 'http://www.weonlydo.com';
wod1.KeepAlive := 1;
wod1.Get;
// here events Connected, Done, Disconnected are fired
// so the connection is closed

2. attempt:
wodHttp1.Blocking := True;
wodHttp1.URL := 'http://www.weonlydo.com';
wod1.KeepAlive := 1;
wod1.Connect;
// nothing happens here

3. attempt:
wodHttp1.Blocking := True;
wodHttp1.URL := 'http://www.weonlydo.com';
wod1.KeepAlive := 1;
wod1.Connect1;
// (this method is not documented) the events Connected is fired
// but now I don't know how to send a message by GET or POST?
// if I call wod1.Get after wod1.Connect1 the connection is closed.


Thanks,
Michal


Complete thread: