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: | "David Compton" (david.w.compt..@gmail.com) |
| Date: | Wed, 11 Oct 2006 08:02:00 +0000 (UTC) |
Hello Remy,
Thanks for your reply.
I'm using Indy version 10.1.5 in Delphi 2006.
I downloaded the dll's from http://www.intelicom.si/ (indy_openssl096g),
they are dated 13/08/2002. Although I also have a later version of these
dll's downloaded from elsewhere (indy-openssl-library-0.9.7j) dated 25/06/2006.
Which version should I be using - or are neither of these correct?
Also which unit do I find TIdSSLIOHandlerSocketOpenSSL in? I can't find
any reference to it in the online help.
Regards,
David Compton
mailto:david.w.compton@gmail.com
> "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