[Qt-interest] proxy issue?

Zongheng Zhou zongheng.zhou at gmail.com
Tue May 26 19:36:30 CEST 2009


I just built the QT4.5.1. I tried some examples, and it works fine. However,
when I tried the network examples (network/http), it always returns a
"SocketAccessError", with the following response:
"HTTP/1.1 403 Forbidden\015\nCache-Control: no-cache\015\nPragma:
no-cache\015\nContent-Type: text/html; charset=utf-8\015\nProxy-Connection:
Keep-Alive\015\nConnection: Keep-Alive\015\nContent-Length: 620\015\n\015\n"
Because I am using proxy, I simply added the following 5 lines in the main
function. Is there anything else I missed?  Anybody else meet the same
issue? By the way, I am using Solaris, and Sun CC.

QNetworkProxy proxy;
proxy.setType(QNetworkProxy::HttpProxy);
proxy.setHostName("my proxy server");
proxy.setPort(my_proxy_port_number);
QNetworkProxy::setApplicationProxy(proxy);

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090526/f882b75a/attachment.html 


More information about the Qt-interest-old mailing list