Hi Dominic,

thanks for this. I'll try this approach.
If  OWSLib can handle proxy settings (host, post username and password)
from urllib2 this solve my problem.

Thanks again

2010/10/6 Dominic Lowe <[email protected]>:
> Hi,
>
>
> On question 1, I have commented on your ticket
> (http://trac.gispython.org/lab/ticket/234) , but just to summarise for the
> list, OWSLib uses urllib2 for url access, so you can set a proxy handler in
> urllib2 before using owslib like this:
>
>
> import urllib2
> from owslib.wms import WebMapService
>
>
> # install the required proxy handler
> proxyHandler = urllib2.ProxyHandler({"http" : "http://yourproxy.com:8080"})
> opener = urllib2.build_opener(proxyHandler)
> urllib2.install_opener(opener)
>
> # Now OWSLib should use the proxy.
> wms = WebMapService('http://wms.jpl.nasa.gov/wms.cgi?')
> print wms.contents
>
> Does that solve your problem?
>
> Cheers,
> Dom


-- 
Alexander Bruy
_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to