# Open-uri behind authenticated firewall

**URL:** <https://www.ruby-forum.com/t/open-uri-behind-authenticated-firewall/89532>\
**Category:** Ruby\
**Created:** [March 21, 2007, 12:46am UTC](https://www.ruby-forum.com/t/open-uri-behind-authenticated-firewall/89532 "2007-03-21T00:46:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Behrang\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b5e925/32.png) [@Behrang\_S](https://www.ruby-forum.com/u/Behrang_S)\
**Post date:** [March 21, 2007, 12:46am UTC](https://www.ruby-forum.com/t/open-uri-behind-authenticated-firewall/89532/1 "2007-03-21T00:46:05Z")

</div>

Hi,

I am behind an authenticated firewall. I have been able to make gem go  
through the firewall by setting the HTTP\_PROXY env var to  
[http://user:removed\_email\_address@domain.invalid](http://user:removed_email_address@domain.invalid) But the open method of the open-uri does  
not go through this proxy by default.

open(address, :proxy =\> “[http://user:removed\_email\_address@domain.invalid](http://user:removed_email_address@domain.invalid)”) is not working.  
Any ideas!?

Thanks,  
Behi

–  
“Science is a differential equation. Religion is a boundary condition”

- Alan Turing

Behrang S.

> **[Best Online Casino in Australia | Top Licensed Casinos for Gamblers](https://toponlinecasinoaustralia.com)**
>
> Best Online Casino in Australia with licensed games only. Play blackjack, roulette, poker and other top-notch casino games. Enjoy gambling 24/7.

> **[Opera News](https://blogs.opera.com/news/)**
>
> The latest news about Opera web browsers, tech trends, internet tips.
