1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

41 commits

Author SHA1 Message Date
gotoyuzo
b4b36c06fa * lib/net/http.rb, lib/open-uri.rb: remove
Net::HTTP#enable_post_connection_check.  [ruby-dev:31960]

* lib/net/imap.rb: hostname should be verified against server's
  indentity as persented in the server's certificate. [ruby-dev:31960]

* ext/openssl/lib/net/telnets.rb, ext/openssl/lib/net/ftptls.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-08 11:16:54 +00:00
gotoyuzo
80865ba2db * lib/net/http.rb: an SSL verification (the server hostname should
be matched with its certificate's commonName) is added.
  this verification can be skipped by
  "Net::HTTP#enable_post_connection_check=(false)".
  suggested by Chris Clark <cclark at isecpartners.com>

* lib/net/open-uri.rb: use Net::HTTP#enable_post_connection_check to
  perform SSL post connection check.

* ext/openssl/lib/openssl/ssl.c
  (OpenSSL::SSL::SSLSocket#post_connection_check): refine error message.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-23 22:21:42 +00:00
akr
bef2f087b6 * lib/open-uri.rb (URI::Generic#find_proxy): use ENV.to_hash to access
http_proxy environment variable to avoid case insensitive
  environment search.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 07:59:40 +00:00
drbrain
91edcb053b Merge RDoc changes from HEAD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-08-04 22:00:31 +00:00
akr
f32584cea1 * lib/open-uri.rb: abolish mod === tempfile to avoid a problem
[ruby-dev:26967].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-07 03:58:39 +00:00
akr
f2a501261f * lib/open-uri.rb (OpenURI.open_http): refine post_connection_check
call.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-01 03:49:12 +00:00
akr
9b1bec6228 * lib/open-uri.rb (OpenURI::Meta::RE_QUOTED_STRING): a content of
quoted-string should be zero or more characters.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-25 04:03:20 +00:00
akr
9846b5b67f * lib/open-uri.rb (URI::FTP#buffer_open): access mechanism
re-implemented according to RFC 1738.
  reported by Guillaume Marcais.  [ruby-talk:131650]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-19 15:53:43 +00:00
akr
70a7a7271d * lib/open-uri.rb: call OpenSSL::SSL::SSLSocket#post_connection_check
after connection is made.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-19 04:55:16 +00:00
akr
8a09688957 * lib/open-uri.rb (OpenURI.open_loop): send authentication only for
the URI directly specified.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-12 08:40:23 +00:00
akr
99135ddc20 document updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-12 05:38:44 +00:00
akr
acb78c8ed3 * lib/open-uri.rb: support https if the platform provides CA
certificates.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-12 05:01:18 +00:00
akr
4170736404 * lib/open-uri.rb (URI::HTTP#proxy_open): new option supported:
:http_basic_authentication.
  suggested by Kent Sibilev.  [ruby-core:4392]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-11 02:47:11 +00:00
akr
494449fdf9 document updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-08 03:06:37 +00:00
akr
d8bc405e15 comment refined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-05 14:13:47 +00:00
akr
c4d8f782a4 lib/open-uri.rb (URI::HTTPS#proxy_open): raise ArgumentError to notice https is not supported.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-09 10:33:25 +00:00
akr
aa18a307bf * lib/open-uri.rb (URI::HTTP#proxy_open): set Host: field explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-21 11:11:40 +00:00
akr
25d94babd5 enable document for Kernel.open.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-12 10:17:46 +00:00
akr
36275950a3 comments modified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-04 07:57:39 +00:00
akr
4e38b50c5e * (lib/open-uri.rb): permit extra semicolon in content-type field.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-27 12:43:02 +00:00
akr
90069dec12 * lib/open-uri.rb (URI::Generic#find_proxy): return nil on loopback
address.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-01 15:31:59 +00:00
akr
b8edcc3081 * lib/open-uri.rb (OpenURI::Buffer#<<): make a tempfile binmode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-31 20:33:33 +00:00
akr
4cb6a7fcd5 lib/open-uri.rb (URI::Generic#find_proxy): warn HTTP_PROXY.
raise an errror on non-http proxy URI.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-31 18:11:55 +00:00
akr
c19b0b5692 fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-07 11:31:21 +00:00
akr
54e444d834 fix previous change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 10:04:37 +00:00
akr
922dc8265f * lib/open-uri.rb (URI::Generic#find_proxy): ENV case sensitivity test
refined.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 09:56:49 +00:00
akr
a3388b68b7 * lib/open-uri.rb (URI::Generic#find_proxy): use http_proxy under CGI
if the environment variable is case sensitive.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-25 08:53:42 +00:00
akr
6eaa5f2b05 * lib/open-uri.rb (OpenURI.open_loop, URI::HTTP#proxy_open): use
catch/throw for redirection instead of exception.
  (OpenURI.open_loop, OpenURI.redirectable?): restrict redirection.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-24 14:36:18 +00:00
akr
087a8db4d2 * lib/open-uri.rb (URI::Generic#find_proxy): use CGI_HTTP_PROXY
instead of HTTP_PROXY in the CGI environment.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-24 11:01:57 +00:00
akr
483ac56440 * lib/open-uri.rb: validate option names.
:content_length_proc and :progress_proc option implemented.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-24 08:02:36 +00:00
akr
31ef5c2d5e * lib/open-uri.rb (OpenURI.open_loop, OpenURI::HTTP#proxy_open):
refactored to support options.
  (Buffer): maintain size by this class.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-15 01:09:21 +00:00
akr
810e7938fd inconsistency of the arguments for respond_to? in previous change is fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-13 11:54:31 +00:00
akr
e008c87423 * lib/open-uri.rb (Kernel[#.]open): hard coded URI schemes removed.
[ruby-ext:02251]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-13 11:39:16 +00:00
akr
bf67d8df27 * lib/open-uri.rb (OpenURI.open_uri): use File::RDONLY.
reported by Take_tk <ggb03124@nifty.ne.jp>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-13 08:58:20 +00:00
nahi
0cf763af9c * lib/open-uri.rb (URI::Generic#find_proxy): no_proxy support did not work.
[ruby-dev:21484]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-10-05 02:00:29 +00:00
akr
131c29ffff * lib/open-uri.rb (OpenURI::Redirect#initialize): call super to
initialize mesg.

* lib/open-uri.rb (OpenURI::Meta#charset): call block to guess charset
  if block is given and charset is not given.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-05-15 09:48:12 +00:00
akr
780e1aa291 * lib/open-uri.rb: replace Kernel.open as well.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-26 08:39:05 +00:00
akr
da19d16b1c * lib/open-uri.rb: dispatch code restructured to make it openable
that has `open' method.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-05 10:44:05 +00:00
akr
5504f490a6 * lib/open-uri.rb: Location: field may has a relative URI.
pointed out by erik eriksson <ee@opera.com>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-05 09:58:18 +00:00
knu
b54b4b79ec Add a missing ||.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-12-18 19:22:46 +00:00
akr
3a20ed532b * lib/open-uri.rb: new file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-12-16 19:06:36 +00:00