Hi there, I''ve a little problem. On my code, I use the flickraw gem. On the application.rb there is a require ''flickraw'' who create a new instance, and for that need to pass the net. It works at home, but in my office we have a proxy, and when I launch webrick I have an error saying that I''m behind a proxy :(. Does anyone have an idea on how to correct this issue ? Is there a config.http_proxy in environement.rb or something like that ? Thank you very much Nic --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Reply to myself,
I''ve temporary corrected this by adding Net::HTTP::Proxy
("xxxx","8080") in the code of the gem.
I''ll try to submit a patch with an ENV.
Cheers
Nic
On Dec 9, 9:29 am, Nicolas Alpi aka Spyou
<nicolas.a...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi there,
>
> I''ve a little problem.
>
> On my code, I use the flickraw gem. On the application.rb there is a
> require ''flickraw'' who create a new instance, and for
that need to
> pass the net.
>
> It works at home, but in my office we have a proxy, and when I launch
> webrick I have an error saying that I''m behind a proxy :(.
>
> Does anyone have an idea on how to correct this issue ? Is there a
> config.http_proxy in environement.rb or something like that ?
>
> Thank you very much
>
> Nic
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Try setting an environment variable like so: http_proxy=http://my.proxy.server.mycompany.com:port_number With the appropriate URI to your proxy server of course. HTH, -Roy -----Original Message----- From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-talk@googlegroups.com] On Behalf Of Nicolas Alpi aka Spyou Sent: Tuesday, December 09, 2008 1:29 AM To: Ruby on Rails: Talk Cc: noodle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Subject: [Rails] Rails and Ruby behind proxy Hi there, I''ve a little problem. On my code, I use the flickraw gem. On the application.rb there is a require ''flickraw'' who create a new instance, and for that need to pass the net. It works at home, but in my office we have a proxy, and when I launch webrick I have an error saying that I''m behind a proxy :(. Does anyone have an idea on how to correct this issue ? Is there a config.http_proxy in environement.rb or something like that ? Thank you very much Nic --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---