<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Maurício de Paulo</b> <span dir="ltr"><<a href="mailto:mauricio.dev@gmail.com">mauricio.dev@gmail.com</a>></span><br>
Date: 2010/9/24<br>Subject: Re: [Qgis-user] Google Layers proxy<br>To: Ivan Mincik <<a href="mailto:ivan.mincik@gmail.com">ivan.mincik@gmail.com</a>><br><br><br>Ivan, reading some urllib2 I've implemented a simple aproach.<br>
It's really buggy as I've inserted the code on the init() but it should prove that it is possible.<br>I didn't test it yet as I'm not at work where there is a proxy.<br>
Actually it's harder to use qgis' proxy settings than to use the evironment settings.<br>If I were to use environmental proxy settings then I would just need to change from urllib to urllib2 (probably the best option).<br>
I'm sending the patch attached, but I wonder what aproach would be easier to maintain and less buggy. <br>Mauricio<br><br><div class="gmail_quote">2010/9/23 Ivan Mincik <span dir="ltr"><<a href="mailto:ivan.mincik@gmail.com" target="_blank">ivan.mincik@gmail.com</a>></span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">2010/9/23 Maurício de Paulo <<a href="mailto:mauricio.dev@gmail.com" target="_blank">mauricio.dev@gmail.com</a>>:<br>
<div><div></div><div>> Hi,<br>
> I'm currently using google layers behind a proxy network that requires user<br>
> authentication. Many QGIS' plugins already connect through authenticated<br>
> proxies but googleLayers can't. I've looked at the code and found out that<br>
> the urllib use doesn't support authenticated proxies. I've also found out<br>
> that urllib2 supports.<br>
> I'd be glad if the dev could change the used library. I've made a few tests<br>
> and the proxyhandler class of the urllib2 can handle the authentication but<br>
> it would need to be read from qgis' settings.<br>
><br>
><br>
> As far as a workaround I've told the proxy to ignore mt*.<a href="http://google.com" target="_blank">google.com</a> and<br>
> <a href="http://maps.google.com" target="_blank">maps.google.com</a> to make the plugin work throught the proxy.<br>
><br>
> Best regards,<br>
> Mauricio<br>
<br>
</div></div>Hi Mauricio,<br>
can You provide a patch ?<br>
<font color="#888888"><br>
Ivan<br>
</font></blockquote></div></div></div><font color="#888888"><br><br clear="all"><br>-- <br>1º Ten Mauricio - Engenheiro Cartógrafo<br>1ª Divisão de Levantamento<br>Exército Brasileiro - Braço Forte, Mão Amiga.<br>
</font></div><br><br clear="all"><br>-- <br>1º Ten Mauricio - Engenheiro Cartógrafo<br>1ª Divisão de Levantamento<br>Exército Brasileiro - Braço Forte, Mão Amiga.<br>