idhttp使用代理的问题
某地使用代理上网
现有如下代码:
IdHTTP1.Host := '*************';//经确认正确(非IP)
IdHTTP1.ProxyParams.Clear;
IdHTTP1.ProxyParams.ProxyServer := '*****************';//经确认正确
IdHTTP1.ProxyParams.ProxyPort := 80;;//经确认正确
if CheckBox2.Checked = True then//有用户和口令情况下
begin
IdHTTP1.ProxyParams.ProxyUsername := '*******';//经确认正确
IdHTTP1.ProxyParams.ProxyPassword := '***********';//经确认正确
end;
但
IdHTTP1.Connect(4000);时确出现错误:Host not find
谁能解答下是我哪里写的不对,还是。。。。。。