Re: [twsocket] HttpCli.Get problem

2007-09-09 Thread brian
Use the DocEnd event
-- 
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


[twsocket] HttpCli.Get problem

2007-09-09 Thread Lenif
Hi all,

I use ICS for my application, I use Get method to get an url

2 problems:

1/ I need to get an url, when I launch .get method, the first time I get a 
result, the second time I use .get method, it doesn't respond, like responding 
from cache. strange. Hope you can understand

2/ I put this code:
try
Data := TMemoryStream.Create;
HttpCli.URL := MyURL;
HttpCli.RcvdStream := Data;
HttpCli.Get;
Do something with result ... ;
finally
Data.Free;
end;

If the url doesn't exist, I get an exception but source in Finally clause is 
never fired ... How to make it running trough the Finally when the url don't 
exist ?


Regards 
Lenif,
-- 
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