[twsocket] THttpCli exception errors

2008-03-27 Thread crazdcodr
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

Re: [twsocket] THttpCli exception errors

2008-03-30 Thread crazdcodr
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

Re: [twsocket] THttpCli exception errors

2008-03-31 Thread crazdcodr
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

[twsocket] THttpCli.CtrlSocket.OnBgException

2008-04-06 Thread crazdcodr
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! --

[twsocket] THttpCli: default webpage name

2008-05-06 Thread crazdcodr
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

[twsocket] THttpCli simultaneous

2008-08-11 Thread crazdcodr
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

Re: [twsocket] THttpCli simultaneous

2008-08-11 Thread crazdcodr
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

Re: [twsocket] THttpCli simultaneous

2008-08-12 Thread crazdcodr
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

[twsocket] IsAddressValid

2008-11-07 Thread crazdcodr
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