Forum: Ruby Newbie Questions: How to set the proxy to download files by

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
84849a10335a327937ae3efd872a085e?d=identicon&s=25 Eric Luo (Guest)
on 2006-03-14 07:30
(Received via mailing list)
I want to download a log file from the remote server, and I'm outside of
the firewall. so I need to access the remote server by proxy. But I
failed to figure out what's the correct way to set the proxy.

I had the followint code snippet:

  ENV['ftp_proxy'] = ""'') do |ftp|
    ftp.login("usename", "password")

It seems that the envinroment variable "ftp_proxy" has no effect.

Any clue for this problem will be appreciated.

This topic is locked and can not be replied to.