摘要: Delphi使用Indy、ICS组件读取网页使用Indy 10中TIdHTTP的例子:代码usesIdHttp;...functionHttpGet(constUrl:string;varHtml:string):Boolean;varHttpClient:TIdHTTP;beginResult:=False;HttpClient:=TIdHTTP.Create(nil);tryHtml:=HttpClient.Get(Url);Result:=True;exceptone:Exceptiondobeginend;end;HttpClient.Free;end;Indy采用的是同步I/O的方式 阅读全文
posted @ 2011-03-22 17:04 阳光不远 阅读(2062) 评论(0) 推荐(1) 编辑