[#4479] Requesting addition to IRB (configurable standard output) — Sascha Ebach <se@...>

Hello,

13 messages 2005/02/24
[#4482] Re: Requesting addition to IRB (configurable standard output) — Sam Roberts <sroberts@...> 2005/02/25

Quoting se@digitale-wertschoepfung.de, on Fri, Feb 25, 2005 at 01:22:34AM +0900:

[#4483] Re: Requesting addition to IRB (configurable standard output) — Eric Hodel <drbrain@...7.net> 2005/02/25

On 24 Feb 2005, at 19:51, Sam Roberts wrote:

[#4488] Re: Requesting addition to IRB (configurable standard output) — Sam Roberts <sroberts@...> 2005/02/26

Quoting drbrain@segment7.net, on Sat, Feb 26, 2005 at 02:43:31AM +0900:

[#4489] Re: Requesting addition to IRB (configurable standard output) — Eric Hodel <drbrain@...7.net> 2005/02/26

On 25 Feb 2005, at 16:03, Sam Roberts wrote:

Re: HTTP Basic authentication for open_uri

From: Kent Sibilev <ksibilev@...>
Date: 2005-02-09 00:41:41 UTC
List: ruby-core #4399
Tanaka Akira <akr@m17n.org> writes:

> In article <6306120cc60ccc430b841596e52c3e91@bellsouth.net>,
>   Kent Sibilev <ksibilev@bellsouth.net> writes:
>
>> That enables the following usage:
>>
>> open('http://user:pwd@homename') do |f|
>> ...
>> end
>
> Since the format is deprecated, open-uri doesn't support the format.
>
> RFC 3986:
>
>    Use of the format "user:password" in the userinfo field is
>    deprecated.  Applications should not render as clear text any data
>    after the first colon (":") character found within a userinfo
>    subcomponent unless the data after the colon is the empty string
>    (indicating no password).  Applications may choose to ignore or
>    reject such data when it is received as part of a reference and
>    should reject the storage of such data in unencrypted form.  The
>    passing of authentication information in clear text has proven to be
>    a security risk in almost every case where it has been used.
> -- 
> Tanaka Akira

OK, I didn't know about it. In this case, should it still provide a
little bit more user-friendly API anyway? Something like: 

open("http://www.example.com", :auth_info => [user, pwd]) do |f|
 ...
end

Cheers, 
Kent.

In This Thread