[Qt-interest] Qt-interest Digest, Vol 6, Issue 246
Thiago Macieira
thiago.macieira at trolltech.com
Wed May 27 20:40:29 CEST 2009
Zongheng Zhou wrote:
>> Zongheng Zhou wrote:
>> >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.
>>
>> Your proxy replied with error 403, indicating you're simply not
>> allowed to use the proxy.
>>
>> It's not a request for authentication (that would be a 407). You
>> should contact your network admin to find the correct coordinates for
>> the proxy.
>>
>> --
>> Thiago Macieira - thiago.macieira (AT) nokia.com
>> Senior Product Manager - Nokia, Qt Software
>> Sandakerveien 116, NO-0402 Oslo, Norway
>
>But the other application such as 'wget' works fine, when the
> environment variable 'http_proxy' is set as the same proxy server and
> port. Anything special here?
It's not the same thing.
You set the proxy for QTcpSocket: it's at a too low-level. You need to set
it on the QHttp class or the QNetworkAccessManager.
--
Thiago Macieira - thiago.macieira (AT) nokia.com
Senior Product Manager - Nokia, Qt Software
Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090527/57079512/attachment.bin
More information about the Qt-interest-old
mailing list