[Interest] Http Proxy connection woes
Thiago Macieira
thiago.macieira at intel.com
Tue Feb 24 22:31:38 CET 2015
On Tuesday 24 February 2015 13:24:24 Jason Kretzer wrote:
> Here is the thing:
>
> I have software that is generally “proxy aware.” I have it running behind
> other proxies and they seem to work. The software is now running behind
> another proxy and I cannot seem to connect to the outside world using it.
>
> Here is the code in main.cpp:
> QNetworkProxy proxy;
> proxy.setType(QNetworkProxy::HttpProxy);
> proxy.setHostName(hostName);
> proxy.setPort(port);
> proxy.setUser(uname);
> proxy.setPassword(pw);
> QNetworkProxy::setApplicationProxy(proxy);
>
> I have validated with the client that it is an HttpProxy. I have left out
> how I get the settings, but they are accurate and in the proper format.
> The uname/pw are windows authentication and I tried it with both
> “adomain\bob” and “bob at domain.com”.
What's the authentication method this proxy server uses? HTTP Basic? Or is it
NTLM?
> Anyway, when it runs, this line — qDebug() << "ConnectToHost Error String:
> " << socket.errorString(); Prints:
> DEBUG: ConnectToHost Error String: "Error communicating with HTTP proxy”
>
>
> Just as an extra piece of information, I also tried it with a SOCKS5
> ProxyType and the line printed: DEBUG: ConnectToHost Error String: "Socket
> operation timed out"
>
> Is there some obvious thing I am missing here?
500 milliseconds may be too short. You may be facing network congestion.
Increase to 10 seconds.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list