Project

General

Profile

Actions

Feature #3848

closed

Using http basic authentication for FTP with Open URI

Added by jlecour (Jérémy Lecour) about 14 years ago. Updated about 3 years ago.

Status:
Closed
Target version:
-
[ruby-core:32465]

Description

=begin
Hi,

I needed to download a file from a FTP server, with OpenURI and I've found that it is not possible to do it with authentication.

There is an option in the OpenURI open method to use a username/password but it is not used in FTP connection, the username/password for FTP is always set to anonymous/nil.

I've written avery basic patch to use the option.
Is it something that can be included in future releases of Ruby ? Is there a "clean" way to patch OpenURI in the meantime ?

Thanks.
=end


Files

openuri-ftp-auth.patch (573 Bytes) openuri-ftp-auth.patch jlecour (Jérémy Lecour), 09/18/2010 04:02 AM

Related issues 2 (0 open2 closed)

Related to Ruby 1.8 - Bug #435: open-uri.rb 407 Proxy Authentication Required (OpenURI::HTTPError)Rejected08/13/2008Actions
Related to Ruby master - Feature #4071: support basic auth for Net::HTTP.get requestsClosed11/19/2010Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0