---------- Forwarded message ---------- From: Maurício de Paulo <[email protected]> Date: 2010/9/24 Subject: Re: [Qgis-user] Google Layers proxy To: Ivan Mincik <[email protected]>
Ivan, reading some urllib2 I've implemented a simple aproach. It's really buggy as I've inserted the code on the init() but it should prove that it is possible. I didn't test it yet as I'm not at work where there is a proxy. Actually it's harder to use qgis' proxy settings than to use the evironment settings. If I were to use environmental proxy settings then I would just need to change from urllib to urllib2 (probably the best option). I'm sending the patch attached, but I wonder what aproach would be easier to maintain and less buggy. Mauricio 2010/9/23 Ivan Mincik <[email protected]> 2010/9/23 Maurício de Paulo <[email protected]>: > > Hi, > > I'm currently using google layers behind a proxy network that requires > user > > authentication. Many QGIS' plugins already connect through authenticated > > proxies but googleLayers can't. I've looked at the code and found out > that > > the urllib use doesn't support authenticated proxies. I've also found out > > that urllib2 supports. > > I'd be glad if the dev could change the used library. I've made a few > tests > > and the proxyhandler class of the urllib2 can handle the authentication > but > > it would need to be read from qgis' settings. > > > > > > As far as a workaround I've told the proxy to ignore mt*.google.com and > > maps.google.com to make the plugin work throught the proxy. > > > > Best regards, > > Mauricio > > Hi Mauricio, > can You provide a patch ? > > Ivan > -- 1º Ten Mauricio - Engenheiro Cartógrafo 1ª Divisão de Levantamento Exército Brasileiro - Braço Forte, Mão Amiga. -- 1º Ten Mauricio - Engenheiro Cartógrafo 1ª Divisão de Levantamento Exército Brasileiro - Braço Forte, Mão Amiga.
gmaps-http-proxy.diff
Description: Binary data
_______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
