摘要:
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的方式 阅读全文