🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
2 messages
2 total messages Started by bar Wed, 07 Nov 2007 09:44
Handling Messages
#782
Author: bar
Date: Wed, 07 Nov 2007 09:44
7 lines
1021 bytes
Hello

How to handle the error messages like Page Not Found, Time Out, while using 
Indy 9.

Thanks
SA 
Re: Handling Messages
#783
Author: Remy Lebeau (TeamB)
Date: Wed, 07 Nov 2007 17:48
16 lines
1629 bytes
"bar" <shaikakbar250281@yahoo.co.in> wrote in message
news:473188d7@newsgroups.borland.com...

> How to handle the error messages like Page Not Found,
> Time Out, while using Indy 9.

Assuming you are using TIdHTTP, those are handled automatically, provided 
the server is sending back a proper error response at the HTTP level.  When 
that happens, TIdHTTP will throw an exception that you can catch.  If, on 
the other hand, the server is sending a success response instead of an error 
response, then an exception will not be thrown, and you will have to parse 
the returned HTML manually instead.


Gambit
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads