Re: How can I resume from HTTP Client Error?

Giganews Newsgroups
Subject: Re: How can I resume from HTTP Client Error?
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Wed, 21 Oct 2009

"e.kamiya" <eiichirokami…@gmail.com> wrote in message
news:30736CE84F95E340eiichirokami…@gmail.com...

> 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?

Make sure TIdHTTP is fully disconnected, and that its InputBuffer is empty.
Or, simply destroy the TIdHTTP object and create a new one.

--
Remy Lebeau (TeamB)

Replies

In response to

How can I resume from HTTP Client Error? posted by e.kamiya on Wed, 21 Oct 2009