zzak
dd05478f24
* lib/open-uri.rb: Documentation for OpenURI
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-10-20 02:01:23 +00:00
akr
ab63cdf1ab
* lib/open-uri.rb: use respond_to? to test Tempfile.
...
[ruby-dev:45995] [Bug #6781 ] reported by hsbt (Hiroshi SHIBATA).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-23 13:49:56 +00:00
drbrain
9416becda4
* lib/net/http.rb: Net::HTTP now automatically detects and uses
...
proxies from the environment. A proxy may also be specified as
before.
Net::HTTP::Proxy still creates anonymous classes, but these classes
are only used to store configuration information. When an HTTP
instance is created the configuration is now copied.
Additionally, Net::HTTP::ProxyDelta is no longer used by Net::HTTP
[Feature #6546 ]
* lib/open-uri.rb: Moved URI::Generic#find_proxy to uri/generic.
* lib/uri/generic.rb: Imported find_proxy from open-uri.
* test/open-uri/test_open-uri.rb: Moved proxy-discovery tests to URI.
* test/uri/test_generic.rb: Imported proxy-discovery tests from
open-uri.
* test/net/http/test_http.rb: Added tests for proxy behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-20 01:56:21 +00:00
ayumin
b69f55a673
* lib/open-uri.rb: delete space.
...
* test/psych/test_alias_and_anchor.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-17 16:13:10 +00:00
akr
cb0d480532
* lib/open-uri.rb: call io.close! for Tempfile.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-17 13:17:49 +00:00
drbrain
164c7dc574
* lib/open-uri.rb: Fix indentation of OpenURI::OpenRead#open. Use ++
...
instead of `' for method arguments in open-uri.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-26 23:11:38 +00:00
drbrain
ca96541149
* ext/pathname/lib/pathname.rb: Fix typos and grammar mistakes. Patch
...
by Luke Gruber. [#5203 ]
* ext/pty/lib/expect.rb: ditto
* lib/mathn.rb: ditto
* lib/net/http.rb: ditto
* lib/open-uri.rb: ditto
* lib/ostruct.rb: ditto
* lib/tempfile.rb: ditto
* lib/thread.rb: ditto
* lib/weakref.rb: ditto
* sample/webrick/httpproxy.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-26 22:22:37 +00:00
akr
aede5b3911
update comment.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-27 23:45:12 +00:00
akr
aeab9011fe
* lib/resolv-replace.rb: suppress warning.
...
* lib/open-uri.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-29 22:02:39 +00:00
akr
5fd45a4b79
* lib/uri/generic.rb (URI::Generic#hostname): new method.
...
(URI::Generic#hostname=): ditto.
* lib/open-uri.rb: use URI#hostname
* lib/net/http.rb: ditto.
[ruby-core:32056]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-10-06 03:30:49 +00:00
akr
02a15031b1
fix a typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-05 13:14:52 +00:00
akr
0cde80d36a
* lib/open-uri.rb (OpenURI::Meta#content_type_parse): strip quotes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-13 02:29:47 +00:00
akr
db2be749b4
* lib/open-uri.rb (URI::FTP#buffer_open): fix the %2F handling.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 16:18:03 +00:00
akr
188e9667dc
* lib/open-uri.rb (URI::FTP#buffer_open): use the port specified in
...
the URI.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 13:49:07 +00:00
akr
ccdcc971f6
* lib/open-uri.rb (OpenURI.redirectable?): reverted https redirection.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-07 22:33:00 +00:00
akr
5effdad2cd
* lib/open-uri.rb (OpenURI.redirectable?): permit https redirection.
...
patch from Roman Shterenzon. [ruby-core:20485]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-27 05:30:58 +00:00
akr
a64f397403
* lib/open-uri.rb: remove debug code introduced by previous change.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-05 09:53:17 +00:00
naruse
f09149cab5
* lib/open-uri.rb (OpenURI.open_uri): set encoding to strio.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-05 08:51:22 +00:00
akr
f3d95cce97
trailing spaces removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-09-14 15:18:53 +00:00
matz
e6c1752137
* lib/rdoc.rb: massive spelling correction patch from Evan Farrar
...
<evanfarrar at gmail.com> in [ruby-doc:1382] applied.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04 09:37:38 +00:00
akr
3e1c54defd
* lib/open-uri.rb (OpenURI::Meta#meta_setup_encoding): use ASCII-8BIT
...
for charset unspecified non-text data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-28 14:38:33 +00:00
akr
1f262b3ef4
* lib/open-uri.rb (OpenURI::Meta#meta_setup_encoding): setup encoding
...
by charset.
(OpenURI::Meta#meta_add_field): call meta_setup_encoding when
content-type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-28 09:10:32 +00:00
akr
54b455190b
* lib/open-uri.rb (OpenURI.open_http): rescue URI::InvalidURIError by
...
URI.parse for location URI.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-08 13:11:46 +00:00
naruse
b97ec5d0c0
* lib/rexml/text.rb, lib/rubygems/open-uri.rb, lib/open-uri.rb,
...
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
2008-01-23 18:53:52 +00:00
akr
ce0aa0af91
* lib/open-uri.rb (OpenURI::Buffer): use Meta ===. [ruby-core:14295]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 14:04:16 +00:00
drbrain
5d592124f5
Fix method redefined warning in open-uri.rb. [ruby-core:14304].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-23 10:35:58 +00:00
akr
2e064c694c
* lib/open-uri.rb: :redirect option implemented to disable redirects.
...
(OpenURI::HTTPRedirect): new exception class for redirection.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-28 12:55:51 +00:00
akr
04c290820c
* lib/open-uri.rb (OpenURI.open_http): fix :ssl_ca_cert option.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-13 16:04:31 +00:00
gotoyuzo
a1455c75e9
* lib/net/http.rb: remove enable_post_connection_check flag.
...
* lib/open-uri.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-07 08:53:06 +00:00
gotoyuzo
4f04f0372b
* 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/trunk@13499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-23 22:21:18 +00:00
akr
24385e708e
* lib/open-uri.rb: add :ftp_active_mode option.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-29 09:38:36 +00:00
akr
8a25f09d6c
* lib/open-uri.rb: make ftp passive mode to avoid NAT problem.
...
[ruby-dev:31377]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-08-13 04:23:42 +00:00
akr
d98a362c1a
* 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/trunk@12760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-07-13 07:59:40 +00:00
matz
88ca8baef9
* lib/open-uri.rb (OpenURI::OpenURI.open_uri): revert last change to conform RFC3986. [ruby-dev:30230]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-01-31 06:10:06 +00:00
matz
900546717e
* lib/open-uri.rb (OpenURI::OpenURI.open_uri): use user and
...
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
2007-01-31 05:47:33 +00:00
drbrain
52c034aecb
Documentation cleanup.
...
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
2006-08-04 18:05:50 +00:00
akr
6701de8e1e
* lib/open-uri.rb: add :ssl_verify_mode option.
...
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
2006-02-19 15:17:16 +00:00
aamine
d923e58850
* lib/open-uri.rb (open_loop): find_proxy should return nil when proxy does not exist. [ruby-dev:27630]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-02 22:58:39 +00:00
akr
372809129d
* lib/open-uri.rb (OpenURI.open_loop): prohibit multiple proxy
...
options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-30 16:48:46 +00:00
akr
44594b243d
* lib/open-uri.rb (:proxy_http_basic_authentication): new option.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-29 01:18:14 +00:00
akr
80fb5e0584
* lib/open-uri.rb: add :read_timeout option.
...
[ruby-core:4848]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-15 04:56:25 +00:00
akr
5197f6773a
* lib/open-uri.rb: abolish mod === tempfile to avoid a problem
...
[ruby-dev:26967].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-07 03:58:39 +00:00
akr
f99971051f
* lib/open-uri.rb (OpenURI.open_http): refine post_connection_check
...
call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-01 03:49:12 +00:00
akr
71a80abc7c
* 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/trunk@8518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-25 04:03:20 +00:00
akr
b36f9a090d
* 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/trunk@8003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-19 15:53:43 +00:00
akr
614b7a2d32
* 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/trunk@8000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-19 04:55:16 +00:00
akr
4c1d7f6d8f
* 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/trunk@7952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-12 08:40:23 +00:00
akr
f1bd353b58
document updated.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-12 05:38:44 +00:00
akr
203b7c50f2
* lib/open-uri.rb (OpenURI.open_http): reject userinfo explicitly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-12 05:12:56 +00:00
akr
c34e899e4f
* lib/open-uri.rb: support https if the platform provides CA
...
certificates.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-12 05:01:18 +00:00