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