How can I resume from HTTP Client Error?

Giganews Newsgroups
Subject: How can I resume from HTTP Client Error?
Posted by:  e.kamiya (eiichirokami…@gmail.com)
Date: Wed, 21 Oct 2009

I am writing an HTTP client program which visits a site if it has any new messages, using TIdHTTP.
When the program encounters some error such as ?Socket Error #10054 Connection reset by peer?, the only way I can resume the job is to terminate the program and start it again.
Is there any method to reset the IdHTTP. status?

My codes :
      wStr  := '(my URL)';
      try
        IdHTTP1.Get(wStr, wStream);    //  wStream is TMemoryStream
      except
        on E:EIdException do begin
          StatusBar1.Text := E.Message;
          Raise;
          // I want to reset IdHTTP1 status and retry Get here...
        end;
        else
          Raise;
      end;

Replies