高手进,idhttp如何get https:// 网页 ssl ( 积分: 20 )

J

jgame

Unregistered / Unconfirmed
GUEST, unregistred user!
idhttp
如何获取以https://开头的网页

请高手指教...

如要get https://adwords.google.com/select/
内容要怎么写???




up
 
idhttp
如何获取以https://开头的网页

请高手指教...

如要get https://adwords.google.com/select/
内容要怎么写???




up
 
procedure TForm1.Button1Click(Sender: TObject);
function Get(URL,Dest: string): boolean;
var
DownLoadFile:TFileStream;
begin
Result:= False;
DownLoadFile:=TfileStream.Create(dest,fmCreate);
try
try
idhttp1.HandleRedirects:= true; //必须支持重定向否则可能出错
idhttp1.ReadTimeout:= 30000; //超过这个时间则不再访问
IDHTTP1.Get(URL,DownLoadFile);
if IDHTTP1.ResponseCode=200 then
Result :=true;
except
on E: Exception do
Application.MessageBox(pchar('出现异常,操作终止!'+#10#13+E.Message),'提示',mb_ok+mb_iconinformation);
end;
finally
downloadfile.Free;
end;
end;

begin
get('http://www.indyproject.org/downloads/10/indy10.0.52_source.zip','c:/abc.rar');
end;
 
不是吧,兄弟.

我是要get ssl的啊,

是https://

开头的.
 
盒子上有源代码 自己下了
 

Similar threads

D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
1K
DelphiTeacher的专栏
D
D
回复
0
查看
896
DelphiTeacher的专栏
D
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
顶部