The procedure "IsAddressValid" in the ICS demo project "HttpChk" works
well to check the validity of a URL, but it is very laggy. If you want to
do checks on multiple websites it is much too lengthy/laggy. Is there a
better solution for checking the validity of a URL?
--
Be Yourself @ mail.com!
C
Is there a better method of doing this? If so, a small example would be
GREATLY appreciated.
procedure TForm1.ExecSimultaneous;
begin
for Item := 1 to CheckListBox1.Items.Count do begin
AHttpCli := THttpCli.Create(Self);
with AHttpCli do begin
MultiThreaded := True;
FHttpCliList.Add(AHttpCli);
Ta
So I should issue GetAsync and handle RcvdStream in the OnDocData event,
correct?
- Original Message -
From: "Francois Piette"
To: "ICS support mailing"
Subject: Re: [twsocket] THttpCli simultaneous
Date: Mon, 11 Aug 2008 11:56:42 +0200
> I'd like to use THttpCli to do mult
I'd like to use THttpCli to do multiple simultaneous "GET" requests of
different websites. All of the retrieved HTML documents need to be saved
to the harddrive.
When dynamically creating each of the THttpCli components, should I issue
"GetAsync" and write the data to disk in the OnDocData event? O
If THttpCli is used to get a webpage with no document name specified,
only directory ("www.codegear.com/products") - is it possible to find out
the default document name? Whether it be "index.html" or "main.html" or
just some custom name specified on the webserver?
--
See Exclusive Video: 10th An
I have tried to implement an exception handler for this event but was
unsuccessful. I have also read of similar complaints from other people. A
working example of how to do this would be greatly appreciated.
--
Want an e-mail address like mine?
Get a free e-mail account today at www.mail.com!
--
I have tried assigning a procedure to handle this exception using your
suggestions, using this code:
-
HttpCli.CtrlSocket.OnBgException := ExErr;
...
procedure TForm1.ExErr(sender: TObject; E: Exception; var CanClose:
Boolean);
Begin
try
CanClose := False;
Label1.Caption := 'Exception error.';
exc
Thank you for the response Francois. I've tried using a try..except
statement, which didn't work. I also cannot find any information about
"OnBackgroundException". Can you please be more specific as to how you
recommend handling these exception errors?
--
Want an e-mail address like mine?
Get a f
Why is ICS written to trigger an exception error upon events such as an
internal server error, or when a connection request is aborted in the
middle of receiving data from the server? The code I am referring to is
this:
if (FStatusCode >= 400) and (FStatusCode <> 401) and (FStatusCode <> 407)
then