[Tilecache] Caching external WMS through a proxy

Jon Britton man_kills_everything at hotmail.com
Mon Feb 18 05:37:01 EST 2008


Thanks,

I've created a http_proxy environment variable in Windows but still no luck.
The WMS im using works without TileCache so there shouldn't be a problem
there. Here are the settings I'm using:

[oam]
type=WMSLayer
layers=world
url=http://openaerialmap.org/wms/
extension=png
bbox=-20037508.3427892,-20037508.3427892,20037508.3427892,20037508.3427892
srs=EPSG:900913

Although I'm pretty sure the problem isn't here. Is there any way I can
check whether python knows about my proxy?

Cheers,
Jon


Christopher Schmidt-4 wrote:
> 
> On Sun, Feb 17, 2008 at 04:56:03PM -0800, Chris Whitney wrote:
>> If I understand the question correctly:
>> 
>> [ Tilecache on Apache] -> [proxy] -> [WMS Server]
>> 
>> If so, this isn't really the responsibility of Tilecache to make sure  
>> that outgoing HTTP (WMS) requests go through the proxy. Depending on  
>> what you mean by "proxy"  (is it an HTTP proxy, SOCKS, VPN tunnel, or  
>> some machine that you SSH tunnel through, etc) you will have to  
>> configure the operating system / third-party tool correctly.
> 
> Not really. There are standard environment variables which control the
> use of HTTP Proxies: So long as you don't need authentication, you can
> do this without touching the Tilecache code by setting the HTTP_PROXY
> environment variable: see the urllib documentation for more. 
> 
> http://docs.python.org/lib/module-urllib.html
> 
> Regards,
> -- 
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
> 
> 

-- 
View this message in context: http://www.nabble.com/Caching-external-WMS-through-a-proxy-tp15478457p15542478.html
Sent from the TileCache mailing list archive at Nabble.com.




More information about the Tilecache mailing list