connections via http proxy

Hello ObsPy users,

Does anyone know of a way to use obspy.iris, obspy.neries, etc. through ah http proxy server. I just updated all of ObsPy, and obspy-runtests fails with "HTTPError: HTTP Error 403: Use Proxy Server" for lots of things requiring a network connection. I don't know how to configure this. With pip, I just give it a flag, like --proxy=my.proxyout.com . Has anyone done this before?

Thanks in advance,
Jon

Ciao Jon,

have you tried to set the environment variable HTTP_PROXY, e.g.::
    export HTTP_PROXY=http://server:8888

see also::
    * http://docs.python.org/library/urllib.html or the
    * http://docs.python.org/library/urllib2.html

Cheers,
M

That did it! Thanks very much. I had it set tried export HTTP_PROXY=server, but it didn't work. It just wasn't complete enough.

Thanks again,
Jon