delhpi:http超时设置(转载)
原文地址:http://www.delphitop.com/html/kongjian/544.html
var FHTTPClient:TIdHTTP; begin FHTTPClient := TIdHTTP.Create( Self ); with FHTTPClient do begin Disconnect; Request.Pragma := 'no-cache'; Request.CacheControl := 'no-cache'; Request.Connection := 'close'; ReadTimeout := 1000 * 60 * 1;//1分钟超时 memo1.Text :=Get( 'http://hk.news.yahoo.com/busi/general/prnewswire/' ); end; freeandnil(FHTTPClient);
若是本人原创文章,请标明:本文来自博客园,作者:huiy_小溪,转载请注明原文链接:https://www.cnblogs.com/huiy/p/9645231.html。
反之,请标明原创作者,文章链接,所属平台。