Delphi: idHttp+SSL

前端 未结 3 1127
别那么骄傲
别那么骄傲 2020-12-01 18:52

Explain me please how to download a file from a server using SSL (https://). I have not found an appropriate answer in the Internet.

Everybody says about TIdSSLIOHan

相关标签:
3条回答
  • 2020-12-01 19:18

    Download openssl-1.0.0d-i386-win32-rev2.zip , not openssl-1.0.0d-x64_86-win64-rev2.zip from http://indy.fulgan.com/SSL/

    Read here too: https://forums.embarcadero.com/thread.jspa?threadID=15569

    0 讨论(0)
  • 2020-12-01 19:41

    It is essential to get the correct DLLs as some are compiled with links to M$ Studio and therefore do not work in Delphi. Try https://indy.fulgan.com/SSL/ Latest versions are at the bottom of the page.

    0 讨论(0)
  • 2020-12-01 19:42

    To use Indy's OpenSSL class, you need ssleay32.dll and libeay32.dll. That probably should have been apparent from the source of the exception in the Indy code you tried to execute.

    The libraries are linked to from the Indy page mentioned in the question. If you're legally allowed to do so, you can distribute them with your application. Put them wherever DLLs go (usually your application directory).

    TIdSSLIOHandlerSocketOpenSSL is an OpenSSL-specific descendant of the abstract TIdSSLIOHandlerSocket class. If you were using some other SSL library instead of OpenSSL, you'd use a different descendant class.

    0 讨论(0)
提交回复
热议问题