From: mathew Date: 2010-11-27T19:21:35+09:00 Subject: [ruby-core:33425] Re: [Ruby 1.9-Feature#4071][Open] support basic auth for Net::HTTP.get requests --001636aa2bfcf972450496063370 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Nov 24, 2010 at 22:12, Marc-Andre Lafortune wrote: > If the patch won't be accepted, the documentation of either `post_form` or > `get` should be made more explicit to state that one supports it, or that > the other doesn't as clearly this situation can only be justified by > historical reasons. > I just checked, and my original submitted documentation for net/http warned that authentication information in the URI was not valid as per RFC 1738 section 3.3, even though the URI class accepted it and res = Net::HTTP.post_form(URI.parse(' http://jack:pass@www.example.com/todo.cgi'), {'from'=>'2005-01-01', 'to'=>'2005-03-31'}) worked. So presumably at some point someone removed the warning from the documentation. mathew -- --001636aa2bfcf972450496063370 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Nov 24, 2010 at 22:12, Marc-Andre Lafortune <<= a href=3D"mailto:redmine@ruby-lang.org">redmine@ruby-lang.org> wrote:
If the patch won't be accepted, the documentation of either `post_form`= or `get` should be made more explicit to state that one supports it, or th= at the other doesn't as clearly this situation can only be justified by= historical reasons.
=A0
I just checked, and my original submitted = documentation for net/http warned that authentication information in the UR= I was not valid as per RFC 1738 section 3.3, even though the URI class acce= pted it and

res =3D Net::HTTP.post_form(URI.parse('http://jack:pass@www.example.com= /todo.cgi'),

=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 {'from'=3D>'2005-01-01', = 9;to'=3D>'2005-03-31'})


worked. So presuma= bly at some point someone removed the warning from the documentation.


--001636aa2bfcf972450496063370--