delphi IDHTTP 断开连接/超时读取


本文整理自网络,侵删。

 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);

相关阅读 >>

Delphi vcl gif 动画

Delphi 自带的 base64 编解码函数

Delphi unicode转中文编码

Delphi开发firemonkey应用程序时无法打开窗体的解决

Delphi 将鼠标锁定在一定范围

Delphi windows 编程[19] - 改变菜单项的状态: getmenustate、enablemenuitem

Delphi xe程序的主题(theme)设置

Delphi关于dbgrid和webbrowser的焦点问题

Delphi 安卓获得设备 id

Delphi 新建文件夹函数

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...