# connections via http proxy

**URL:** <https://discourse.obspy.org/t/connections-via-http-proxy/127>\
**Category:** Users Mailing List Archive\
**Tags:** archive\
**Created:** [August 2, 2012, 3:05pm UTC](https://discourse.obspy.org/t/connections-via-http-proxy/127 "2012-08-02T15:05:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_K\_Maccarthy](https://discourse.obspy.org/user_avatar/discourse.obspy.org/jonathan_k_maccarthy/32/266_2.png) [@Jonathan\_K\_Maccarthy](https://discourse.obspy.org/u/Jonathan_K_Maccarthy)\
**Post date:** [August 2, 2012, 3:05pm UTC](https://discourse.obspy.org/t/connections-via-http-proxy/127/1 "2012-08-02T15:05:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![1114](https://discourse.obspy.org/letter_avatar_proxy/v4/letter/1/77aa72/32.png) [@1114](https://discourse.obspy.org/u/1114)\
**Post date:** [August 2, 2012, 6:19pm UTC](https://discourse.obspy.org/t/connections-via-http-proxy/127/2 "2012-08-02T18:19:24Z")

</div>

Ciao Jon,

have you tried to set the environment variable HTTP\_PROXY, e.g.::  
&nbsp;&nbsp;&nbsp;&nbsp;export HTTP\_PROXY=[http://server:8888](http://server:8888)

see also::  
&nbsp;&nbsp;&nbsp;&nbsp;\* [urllib — URL handling modules — Python 3.13.3 documentation](http://docs.python.org/library/urllib.html) or the  
&nbsp;&nbsp;&nbsp;&nbsp;\* [urllib.request — Extensible library for opening URLs — Python 3.13.3 documentation](http://docs.python.org/library/urllib2.html)

Cheers,  
M

---

<div class="post-metadata">

**Author:** ![Jonathan\_K\_Maccarthy](https://discourse.obspy.org/user_avatar/discourse.obspy.org/jonathan_k_maccarthy/32/266_2.png) [@Jonathan\_K\_Maccarthy](https://discourse.obspy.org/u/Jonathan_K_Maccarthy)\
**Post date:** [August 2, 2012, 6:37pm UTC](https://discourse.obspy.org/t/connections-via-http-proxy/127/3 "2012-08-02T18:37:16Z")

</div>

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
