Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Oct : Re: IdHTTP Component - Error when Calling Get Method for Https URL
| Subject: | Re: IdHTTP Component - Error when Calling Get Method for Https URL |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Wed, 11 Oct 2006 00:32:28 |
"David Compton" <david.w.compton@gmail.com> wrote in message
news:94596682342c8c8bb6cb323a738@newsgroups.borland.com...
> My problem is that I get the following error:
>
> "An existing connection was forcibly closed by the remote host" when the
> Get method is called.
WSAECONNRESET (10054)
Connection reset by peer.
A existing connection was forcibly closed by the remote host. This
normally results if the peer application on the remote host is suddenly
stopped, the host is rebooted, or the remote host used a "hard close" (see
setsockopt for more information on the SO_LINGER option on the remote
socket.)
> Downloading the required SSL dll's and saving them into my application
root
> directory
Which version of Indy are you using? Which DLLs did you download?
> TMyIdSSLIOHandlerSocketBase = class(TIdSSLIOHandlerSocketBase)
You need to use TIdSSLIOHandlerSocketOpenSSL, not TIdSSLIOHandlerSocketBase
directly. Your code is not actually implementing SSL at all. You are
bypassing Indy's use of the OpenSSL DLLs altogether.
Gambit