Handle a ClosedGracefully

Giganews Newsgroups
Subject: Handle a ClosedGracefully
Posted by:  RonaldoC (ronald…@cybernet.com.br)
Date: Mon, 8 Oct 2007

Hi all,

How could I handle a ClosedGracefully event message?

After I execute an IdHttp.POST and everything works well, at the next POST I receive a ClosedGracefully event message at my exception.

I don't know how to get this event before the IdHttp.POST. Below are my code.

try
    IdHttp4.POST('http://10.0.27.101/', ObjStream);
  except
    on E: Exception do
      ShowMessage('Error message on POST exception: ' + E.Message);
end;

Thanks for any help

Regards,

Ronaldo

Replies