[PyQt] Problem using QHttp

Detlev Offenbach detlev at die-offenbachs.de
Sat Nov 17 07:57:27 GMT 2007


this is not a specific PyQt issue (at least I think so), but maybe somebody 
here can help.

Eric4 includes a module, that downloads some stuff from the internet using 
QHttp. However, when the connection is made through a proxy (e.g. squid), it 
always returns an error "Proxy authentication required". The code is as 

self.__http = QHttp()
self.__http.setProxy(host, proxyPort, proxyUser, proxyPassword)
self.__http.setHost(host, port)
self.__http.get(url, iodevice)

Does anybody know, what is wrong with this code? Complete source can be found 
in latest eric4 snapshot PluginRepositoryDialog.py module.

Thanks everybody.

Detlev Offenbach
detlev at die-offenbachs.de

More information about the PyQt mailing list