IdHTTP设置http代理报错407

coolingxyz 2017-05-04 10:33:52
http: ;

代码如下:

http: TIdHTTP;

http.ProxyParams.ProxyServer := '10.40.xxx.xxx';
http.ProxyParams.ProxyPort := 8080;
http.ProxyParams.ProxyUsername := 'username';
http.ProxyParams.ProxyPassword := 'password';

http.Request.UserAgent := 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;Maxthon;.NET CLR 1.1.4322)';

mBack.Text := http.Get('http://news.qq.com');
...全文
716 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
coolingxyz 2017-05-08
  • 打赏
  • 举报
回复
浏览器代理正常的
wsxrwsxr 2017-05-04
  • 打赏
  • 举报
回复
先在浏览器里面试试看能不能正常使用

1,593

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 网络通信/分布式开发
社区管理员
  • 网络通信/分布式开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧