idhttp GET HTTPS 出错
- Delphi(Pascal) code
idhttp1.IOHandler := IdSSLIOHandlerSocketOpenSSL1;Memo1.Text := idhttp1.Get('https://passport.baidu.com/?login');按网上教程我下载了ssleay32.dll和libeay32.dll,但是都无法加载。最后从别人的一个程序:http://www.de86.cn/tbbl/barlord.zip里面拷出来这两个同名DLL。
转而提示Read Timeout。访问普通http协议的网页也是如此。
测试环境:
WinXP SP3+Delphi 2007+Indy 10.1.5
[解决办法]
"Lbrary Path"和"Browsing Path"当中加上";D:\Working\Components\indy10.2.5\Lib\System;D:\Working\Components\indy10.2.5\Lib\Core;D:\Working\Components\indy10.2.5\Lib\Protocols"(具体替换为你自己的目录)
"Debug DCU Path"当中删除Indy相关目录