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::
    * urllib — URL handling modules — Python 3.13.3 documentation or the
    * urllib.request — Extensible library for opening URLs — Python 3.13.3 documentation

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