pyqt  

Re: [PyQt] Qt 4.4: QtNetwork.QNetworkProxy: Problem

Chris Giles
Fri, 18 Jul 2008 02:28:28 -0700

2008/4/21 Phil Thompson <[EMAIL PROTECTED]>:

> On Monday 21 April 2008, Chris Giles wrote:
> > When coupling PyQt 4.3.3 with Qt 4.4, using a "QtNetwork.QNetworkProxy"
> > with "QtNetwork.QHttp" doesn't seem to work anymore.
> >
> > Can anyone confirm this or would you like me to provide a code fragment
> and
> > error report?
>
> Try it with the current PyQt snapshot.
>

Sorry about the delay in replying.  I decided to leave (Py)Qt 4.4 alone for
a while.

Anyway, I've tested this issue further with the latest PyQt 4.4.3
development snapshot.

The problem isn't within my application because it works fine with (Py)Qt
4.3.  Moreover, Eric itself receives the error when checking for updates if
I've enabled my ISP's proxy server.

I'm sure you're aware that the HTTP proxy handling has changed slightly in
Qt 4.4.  I've tried both of these, but both fail:
Path.Proxy.setType( QtNetwork.QNetworkProxy.HttpProxy )
Path.Proxy.setType( QtNetwork.QNetworkProxy.HttpCachingProxy )

Take a look at the attached text file for more info.  Is this a Qt 4.4 bug
that directly relates to handling 'Squid' caching proxy servers, or is PyQt
4.4.3 likely to blame more generally?
Warning:
UNEXPECTED RESPONSE: [HTTP/1.0 403 Forbidden
Server: squid
Date: Fri, 18 Jul 2008 09:03:44 GMT
Content-Type: text/html
Content-Length: 1411
Expires: Fri, 18 Jul 2008 09:03:44 GMT
X-Squid-Error: ERR_ACCESS_DENIED 0
X-Cache: MISS from cbr-pow-pr1.tpgi.com.au
X-Cache-Lookup: NONE from cbr-pow-pr1.tpgi.com.au:3128
Via: 1.0 cbr-pow-pr1.tpgi.com.au:3128 (squid)
Proxy-Connection: close

]
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt