[PyQt] Qt 4.4: QtNetwork.QNetworkProxy: Problem
Detlev Offenbach
detlev at die-offenbachs.de
Sat Jul 19 09:08:52 BST 2008
On Freitag, 18. Juli 2008, Chris Giles wrote:
> 2008/4/21 Phil Thompson <phil at riverbankcomputing.com>:
> > 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?
Hi,
the problem might be within Qt. I've seen this in the past as well, where one
version of Qt didn't work, the next worked ok. It seems, that the proxy
support in QNetworkAccessManager (et al) works fine, just the one in QHttp
doesn't. I saw this in the latest eric4 snapshots accessing the same file via
the update check or the plugin repository dialog and then in the eric4 help
browser. Unfortunately QNetworkAccessManager is new in Qt 4.4 and there is no
way to get a backward compatible solution (at least I didn't find one).
Regards,
Detlev
--
Detlev Offenbach
detlev at die-offenbachs.de
More information about the PyQt
mailing list