aboutsummaryrefslogtreecommitdiffstats
path: root/lib/open-uri.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* * lib/rexml/text.rb, lib/rubygems/open-uri.rb, lib/open-uri.rb,naruse2008-01-231-1/+1
| | | | | | | test/logger/test_logger.rb, test/ruby/test_regexp.rb: fix tests. [ruby-dev:33336] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI::Buffer): use Meta ===. [ruby-core:14295]akr2007-12-241-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix method redefined warning in open-uri.rb. [ruby-core:14304].drbrain2007-12-231-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: :redirect option implemented to disable redirects.akr2007-10-281-0/+24
| | | | | | | (OpenURI::HTTPRedirect): new exception class for redirection. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI.open_http): fix :ssl_ca_cert option.akr2007-10-131-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: remove enable_post_connection_check flag.gotoyuzo2007-10-071-5/+0
| | | | | | | * lib/open-uri.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http.rb: an SSL verification (the server hostname shouldgotoyuzo2007-09-231-10/+5
| | | | | | | | | | | | | | | | 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/trunk@13499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: add :ftp_active_mode option.akr2007-08-291-1/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: make ftp passive mode to avoid NAT problem.akr2007-08-131-0/+1
| | | | | | | [ruby-dev:31377] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (URI::Generic#find_proxy): use ENV.to_hash to accessakr2007-07-131-1/+1
| | | | | | | | http_proxy environment variable to avoid case insensitive environment search. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI::OpenURI.open_uri): revert last change to conform ↵matz2007-01-311-3/+0
| | | | | | RFC3986. [ruby-dev:30230] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI::OpenURI.open_uri): use user andmatz2007-01-311-0/+3
| | | | | | | password from URI unless http_basic_authentication is specified explicitly. [ruby-core:10114] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Documentation cleanup.drbrain2006-08-041-56/+53
| | | | | | | | | | Includes patches by Hugh Sasse: * ping.rb * weakref.rb * mailread.rb git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: add :ssl_verify_mode option.akr2006-02-191-1/+25
| | | | | | | | | suggested by Will Glynn. * lib/open-uri.rb: add :ssl_ca_cert option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (open_loop): find_proxy should return nil when proxy does ↵aamine2005-11-021-1/+1
| | | | | | not exist. [ruby-dev:27630] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI.open_loop): prohibit multiple proxyakr2005-09-301-5/+17
| | | | | | | options. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (:proxy_http_basic_authentication): new option.akr2005-09-291-11/+47
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: add :read_timeout option.akr2005-09-151-0/+11
| | | | | | | [ruby-core:4848] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: abolish mod === tempfile to avoid a problemakr2005-09-071-2/+2
| | | | | | | [ruby-dev:26967]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI.open_http): refine post_connection_checkakr2005-07-011-3/+8
| | | | | | | call. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI::Meta::RE_QUOTED_STRING): a content ofakr2005-05-251-1/+1
| | | | | | | quoted-string should be zero or more characters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (URI::FTP#buffer_open): access mechanismakr2005-02-191-4/+33
| | | | | | | | re-implemented according to RFC 1738. reported by Guillaume Marcais. [ruby-talk:131650] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: call OpenSSL::SSL::SSLSocket#post_connection_checkakr2005-02-191-1/+6
| | | | | | | after connection is made. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI.open_loop): send authentication only forakr2005-02-121-1/+7
| | | | | | | the URI directly specified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* document updated.akr2005-02-121-8/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI.open_http): reject userinfo explicitly.akr2005-02-121-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: support https if the platform provides CAakr2005-02-121-72/+83
| | | | | | | certificates. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (URI::HTTP#proxy_open): new option supported:akr2005-02-111-2/+16
| | | | | | | | :http_basic_authentication. suggested by Kent Sibilev. [ruby-core:4392] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* document updated.akr2005-02-081-47/+53
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* comment refined.akr2005-02-051-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/open-uri.rb (URI::HTTPS#proxy_open): raise ArgumentError to notice https ↵akr2004-07-091-0/+6
| | | | | | is not supported. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (URI::HTTP#proxy_open): set Host: field explicitly.akr2004-04-211-4/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* enable document for Kernel.open.akr2004-04-121-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* comments modified.akr2004-04-041-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * exception message clean-up by Ian Macdonald <ian@caliban.org>.matz2004-03-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * (lib/open-uri.rb): permit extra semicolon in content-type field.akr2004-03-271-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (URI::Generic#find_proxy): return nil on loopbackakr2004-02-011-0/+9
| | | | | | | address. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI::Buffer#<<): make a tempfile binmode.akr2004-01-311-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/open-uri.rb (URI::Generic#find_proxy): warn HTTP_PROXY.akr2004-01-311-0/+9
| | | | | | | raise an errror on non-http proxy URI. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typos.akr2004-01-071-7/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix previous change.akr2003-11-251-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (URI::Generic#find_proxy): ENV case sensitivity testakr2003-11-251-3/+13
| | | | | | | refined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (URI::Generic#find_proxy): use http_proxy under CGIakr2003-11-251-7/+26
| | | | | | | if the environment variable is case sensitive. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI.open_loop, URI::HTTP#proxy_open): useakr2003-11-241-23/+31
| | | | | | | | 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
* * lib/open-uri.rb (URI::Generic#find_proxy): use CGI_HTTP_PROXYakr2003-11-241-2/+10
| | | | | | | 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
* * lib/open-uri.rb: validate option names.akr2003-11-241-8/+122
| | | | | | | :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
* * lib/open-uri.rb (OpenURI.open_loop, OpenURI::HTTP#proxy_open):akr2003-11-151-17/+19
| | | | | | | | 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
* inconsistency of the arguments for respond_to? in previous change is fixed.akr2003-11-131-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (Kernel[#.]open): hard coded URI schemes removed.akr2003-11-131-8/+19
| | | | | | | [ruby-ext:02251] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI.open_uri): use File::RDONLY.akr2003-11-131-1/+1
| | | | | | | 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