Home > Back-end >  IdHTTP set HTTP proxy error 407
IdHTTP set HTTP proxy error 407

Time:09-19

HTTP: .

The code is as follows:

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. The.net CLR 1.1.4322) ';

MBack. Text:=HTTP Get (' http://news.qq.com ');

CodePudding user response:

First in the browser can try it normal use

CodePudding user response:

The browser proxy to normal
  • Related