首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

idhttp GET HTTPS 出错解决方法

2012-03-16 
idhttp GET HTTPS 出错Delphi(Pascal) codeidhttp1.IOHandler : IdSSLIOHandlerSocketOpenSSL1Memo1.Tex

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相关目录

热点排行