appoxy / aws

Amazon Web Services (AWS) Ruby Gem
https://rubygems.org/gems/aws
236 stars 87 forks source link

Using aws gem behind proxy server #94

Closed mfojtik closed 13 years ago

mfojtik commented 13 years ago

Hi,

I just trying to get AWS working on 'proxied' environment. Is there any setting I can fiddle in order to use a proxy server for EC2 connections, or it's something which needs to be fixed/patched in http_connection library?

I thought that setting 'https_proxy' will get this work but unfortunately it seems like it's totally ignored.

Any clue about this?

-- Michal

rkononov commented 13 years ago

I believe that global proxy settings could help you

mfojtik commented 13 years ago

they are unfortunately not helping, I tried HTTP_PROXY, HTTPS_PROXY and lowercase variants.

Quoting net/http library which http_connection use for doing HTTP requests:

Note that net/http never rely on HTTP_PROXY environment variable. If you want to use proxy, set it explicitly.

mfojtik commented 13 years ago

I have working patch for http_connection to enable support for proxy server. I'll sent pull request in few minutes.