Discussion:
Delphi 2007 - Indy 10 - TidHttp raises a Read Timeout error accessing SSL/https sites
(too old to reply)
Kevin Frevert
2007-12-05 20:58:10 UTC
Permalink
Upgrading from D6 (Indy 9) to Delphi 2007 (default Indy 10
components), and attempting to send/receive (xml) data from a secured site
(https) I received the error/exception 'Read Timeout'.

I noticed another thread with the exact same issue, but no solution
provided.

google has not been my friend today.

Is there a workaround? Is there a trick in using the TidHttp component
against https/ssl sites?

Thanks for any info,
krf
Remy Lebeau (TeamB)
2007-12-05 21:42:30 UTC
Permalink
Delphi 2007 (default Indy 10 components)
The version of Indy 10 that ships with D2007 (10.1.6) is quite old. Try
upgrading to the latest snapshot (10.2.3) from Indy's website and see if the
problem continues.


Gambit
Kevin Frevert
2007-12-06 13:28:01 UTC
Permalink
I'll give it a shot.

Thanks,
krf
Post by Remy Lebeau (TeamB)
Delphi 2007 (default Indy 10 components)
The version of Indy 10 that ships with D2007 (10.1.6) is quite old. Try
upgrading to the latest snapshot (10.2.3) from Indy's website and see if
the problem continues.
Gambit
Kevin Frevert
2007-12-06 18:40:50 UTC
Permalink
Post by Remy Lebeau (TeamB)
Delphi 2007 (default Indy 10 components)
The version of Indy 10 that ships with D2007 (10.1.6) is quite old. Try
upgrading to the latest snapshot (10.2.3) from Indy's website and see if
the problem continues.
Now I get 'Could not load SSL library'. The SSL dlls (that are/were on the
Indy site) are in the same directory as the exe .

Googled around and downloaded suggested dlls from OpenSSL.org, installed
that and now I'm getting an exception
'HTTP/1.1 500 Internal Server Error'

I can take the url I am using in the idHttp.Get use it in .Net/C# and the
https request/response works just fine.

Ideas? Suggestions? I can post the more technical details (code) to
.attachments if it would help.

krf
Remy Lebeau (TeamB)
2007-12-06 18:52:29 UTC
Permalink
Post by Kevin Frevert
Now I get 'Could not load SSL library'. The SSL dlls (that are/were
on the Indy site) are in the same directory as the exe .
Those DLLs were custom-made for private use by older versions of Indy.
Newer versions use the official DLLs from OpenSSL's website now.
Post by Kevin Frevert
Googled around and downloaded suggested dlls from OpenSSL.org, installed
that and now I'm getting an exception
'HTTP/1.1 500 Internal Server Error'
Then you likely did not configure TIdHTTP's SSL settings correctly for that
server.


Gambit
Kevin Frevert
2007-12-06 19:18:42 UTC
Permalink
Post by Remy Lebeau (TeamB)
Then you likely did not configure TIdHTTP's SSL settings correctly for
that server.
What do I need to configure? How would I find out? I didn't have to
configure anything for .Net/C#. In fact, it was just this simple..

XmlDocument response = new XmlDocument();
response.Load("https://secure.shippingapis.com/ShippingAPI.dll?API=CustomsCP72V2&XML=...");
//omitting building of XML parameters

Thanks for your assistance.
krf

Loading...