httpclient 2.2.0.2 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/httpclient.rb +5 -5
- data/lib/httpclient/cacert.p7s +12 -12
- data/lib/httpclient/cacert_sha1.p7s +12 -12
- data/lib/httpclient/http.rb +15 -8
- data/lib/httpclient/session.rb +6 -1
- data/lib/httpclient/ssl_config.rb +18 -14
- data/sample/async.rb +8 -0
- data/sample/auth.rb +11 -0
- data/sample/cookie.rb +18 -0
- data/sample/dav.rb +103 -0
- data/sample/howto.rb +49 -0
- data/sample/oauth_buzz.rb +57 -0
- data/sample/oauth_friendfeed.rb +59 -0
- data/sample/oauth_twitter.rb +61 -0
- data/sample/ssl/0cert.pem +22 -0
- data/sample/ssl/0key.pem +30 -0
- data/sample/ssl/1000cert.pem +19 -0
- data/sample/ssl/1000key.pem +18 -0
- data/sample/ssl/htdocs/index.html +10 -0
- data/sample/ssl/ssl_client.rb +22 -0
- data/sample/ssl/webrick_httpsd.rb +29 -0
- data/sample/stream.rb +21 -0
- data/sample/thread.rb +27 -0
- data/sample/wcat.rb +21 -0
- data/test/ca.cert +23 -0
- data/test/client.cert +19 -0
- data/test/client.key +15 -0
- data/test/helper.rb +99 -0
- data/test/htdigest +1 -0
- data/test/htpasswd +2 -0
- data/test/runner.rb +2 -0
- data/test/server.cert +19 -0
- data/test/server.key +15 -0
- data/test/sslsvr.rb +65 -0
- data/test/subca.cert +21 -0
- data/test/test_auth.rb +196 -0
- data/test/test_cookie.rb +398 -0
- data/test/test_http-access2.rb +497 -0
- data/test/test_httpclient.rb +1544 -0
- data/test/test_ssl.rb +215 -0
- metadata +53 -38
- data/lib/http-access2.rbc +0 -732
- data/lib/httpclient.rbc +0 -13559
- data/lib/httpclient/auth.rbc +0 -13772
- data/lib/httpclient/connection.rbc +0 -767
- data/lib/httpclient/cookie.rbc +0 -8442
- data/lib/httpclient/http.rbc +0 -14163
- data/lib/httpclient/session.rbc +0 -15846
- data/lib/httpclient/ssl_config.rbc +0 -5575
- data/lib/httpclient/timeout.rbc +0 -2411
- data/lib/httpclient/util.rbc +0 -1278
data/test/test_ssl.rb
ADDED
@@ -0,0 +1,215 @@
|
|
1
|
+
require File.expand_path('helper', File.dirname(__FILE__))
|
2
|
+
require 'webrick/https'
|
3
|
+
|
4
|
+
|
5
|
+
class TestSSL < Test::Unit::TestCase
|
6
|
+
include Helper
|
7
|
+
DIR = File.dirname(File.expand_path(__FILE__))
|
8
|
+
|
9
|
+
def setup
|
10
|
+
super
|
11
|
+
@serverpid = @client = nil
|
12
|
+
@verify_callback_called = false
|
13
|
+
@verbose, $VERBOSE = $VERBOSE, nil
|
14
|
+
setup_server
|
15
|
+
setup_client
|
16
|
+
@url = "https://localhost:#{serverport}/hello"
|
17
|
+
end
|
18
|
+
|
19
|
+
def teardown
|
20
|
+
super
|
21
|
+
$VERBOSE = @verbose
|
22
|
+
end
|
23
|
+
|
24
|
+
def path(filename)
|
25
|
+
File.expand_path(filename, DIR)
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_options
|
29
|
+
cfg = @client.ssl_config
|
30
|
+
assert_nil(cfg.client_cert)
|
31
|
+
assert_nil(cfg.client_key)
|
32
|
+
assert_nil(cfg.client_ca)
|
33
|
+
assert_equal(OpenSSL::SSL::VERIFY_PEER | OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT, cfg.verify_mode)
|
34
|
+
assert_nil(cfg.verify_callback)
|
35
|
+
assert_nil(cfg.timeout)
|
36
|
+
assert_equal(OpenSSL::SSL::OP_ALL | OpenSSL::SSL::OP_NO_SSLv2, cfg.options)
|
37
|
+
assert_equal("ALL:!ADH:!LOW:!EXP:!MD5:+SSLv2:@STRENGTH", cfg.ciphers)
|
38
|
+
assert_instance_of(OpenSSL::X509::Store, cfg.cert_store)
|
39
|
+
end
|
40
|
+
|
41
|
+
def test_sync
|
42
|
+
cfg = @client.ssl_config
|
43
|
+
cfg.set_client_cert_file(path('client.cert'), path('client.key'))
|
44
|
+
cfg.add_trust_ca(path('ca.cert'))
|
45
|
+
cfg.add_trust_ca(path('subca.cert'))
|
46
|
+
assert_equal("hello", @client.get_content(@url))
|
47
|
+
|
48
|
+
@client.socket_sync = false
|
49
|
+
@client.reset_all
|
50
|
+
assert_equal("hello", @client.get_content(@url))
|
51
|
+
end
|
52
|
+
|
53
|
+
def test_debug_dev
|
54
|
+
str = @client.debug_dev = ''
|
55
|
+
cfg = @client.ssl_config
|
56
|
+
cfg.client_cert = cert("client.cert")
|
57
|
+
cfg.client_key = key("client.key")
|
58
|
+
cfg.add_trust_ca(path('ca.cert'))
|
59
|
+
cfg.add_trust_ca(path('subca.cert'))
|
60
|
+
assert_equal("hello", @client.get_content(@url))
|
61
|
+
assert(str.scan(/^hello$/)[0])
|
62
|
+
end
|
63
|
+
|
64
|
+
def test_verification
|
65
|
+
cfg = @client.ssl_config
|
66
|
+
cfg.verify_callback = method(:verify_callback).to_proc
|
67
|
+
begin
|
68
|
+
@verify_callback_called = false
|
69
|
+
@client.get(@url)
|
70
|
+
assert(false)
|
71
|
+
rescue OpenSSL::SSL::SSLError => ssle
|
72
|
+
assert_match(/certificate verify failed/, ssle.message)
|
73
|
+
assert(@verify_callback_called)
|
74
|
+
end
|
75
|
+
#
|
76
|
+
cfg.client_cert = cert("client.cert")
|
77
|
+
cfg.client_key = key("client.key")
|
78
|
+
@verify_callback_called = false
|
79
|
+
begin
|
80
|
+
@client.get(@url)
|
81
|
+
assert(false)
|
82
|
+
rescue OpenSSL::SSL::SSLError => ssle
|
83
|
+
assert_match(/certificate verify failed/, ssle.message)
|
84
|
+
assert(@verify_callback_called)
|
85
|
+
end
|
86
|
+
#
|
87
|
+
cfg.add_trust_ca(path('ca.cert'))
|
88
|
+
@verify_callback_called = false
|
89
|
+
begin
|
90
|
+
@client.get(@url)
|
91
|
+
assert(false)
|
92
|
+
rescue OpenSSL::SSL::SSLError => ssle
|
93
|
+
assert_match(/certificate verify failed/, ssle.message)
|
94
|
+
assert(@verify_callback_called)
|
95
|
+
end
|
96
|
+
#
|
97
|
+
cfg.add_trust_ca(path('subca.cert'))
|
98
|
+
@verify_callback_called = false
|
99
|
+
assert_equal("hello", @client.get_content(@url))
|
100
|
+
assert(@verify_callback_called)
|
101
|
+
#
|
102
|
+
cfg.verify_depth = 1
|
103
|
+
@verify_callback_called = false
|
104
|
+
begin
|
105
|
+
@client.get(@url)
|
106
|
+
assert(false)
|
107
|
+
rescue OpenSSL::SSL::SSLError => ssle
|
108
|
+
assert_match(/certificate verify failed/, ssle.message)
|
109
|
+
assert(@verify_callback_called)
|
110
|
+
end
|
111
|
+
#
|
112
|
+
cfg.verify_depth = nil
|
113
|
+
cfg.cert_store = OpenSSL::X509::Store.new
|
114
|
+
cfg.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
115
|
+
begin
|
116
|
+
@client.get_content(@url)
|
117
|
+
assert(false)
|
118
|
+
rescue OpenSSL::SSL::SSLError => ssle
|
119
|
+
assert_match(/certificate verify failed/, ssle.message)
|
120
|
+
end
|
121
|
+
#
|
122
|
+
cfg.verify_mode = nil
|
123
|
+
assert_equal("hello", @client.get_content(@url))
|
124
|
+
end
|
125
|
+
|
126
|
+
def test_ciphers
|
127
|
+
cfg = @client.ssl_config
|
128
|
+
cfg.set_client_cert_file(path('client.cert'), path('client.key'))
|
129
|
+
cfg.add_trust_ca(path('ca.cert'))
|
130
|
+
cfg.add_trust_ca(path('subca.cert'))
|
131
|
+
cfg.timeout = 123
|
132
|
+
assert_equal("hello", @client.get_content(@url))
|
133
|
+
#
|
134
|
+
cfg.ciphers = "!ALL"
|
135
|
+
begin
|
136
|
+
@client.get(@url)
|
137
|
+
assert(false)
|
138
|
+
rescue OpenSSL::SSL::SSLError => ssle
|
139
|
+
assert_match(/no cipher match/, ssle.message)
|
140
|
+
end
|
141
|
+
#
|
142
|
+
cfg.ciphers = "ALL"
|
143
|
+
assert_equal("hello", @client.get_content(@url))
|
144
|
+
#
|
145
|
+
cfg.ciphers = "DEFAULT"
|
146
|
+
assert_equal("hello", @client.get_content(@url))
|
147
|
+
end
|
148
|
+
|
149
|
+
private
|
150
|
+
|
151
|
+
def cert(filename)
|
152
|
+
OpenSSL::X509::Certificate.new(File.read(File.join(DIR, filename)))
|
153
|
+
end
|
154
|
+
|
155
|
+
def key(filename)
|
156
|
+
OpenSSL::PKey::RSA.new(File.read(File.join(DIR, filename)))
|
157
|
+
end
|
158
|
+
|
159
|
+
def q(str)
|
160
|
+
%Q["#{str}"]
|
161
|
+
end
|
162
|
+
|
163
|
+
def setup_server
|
164
|
+
logger = Logger.new(STDERR)
|
165
|
+
logger.level = Logger::Severity::FATAL # avoid logging SSLError (ERROR level)
|
166
|
+
@server = WEBrick::HTTPServer.new(
|
167
|
+
:BindAddress => "localhost",
|
168
|
+
:Logger => logger,
|
169
|
+
:Port => 0,
|
170
|
+
:AccessLog => [],
|
171
|
+
:DocumentRoot => DIR,
|
172
|
+
:SSLEnable => true,
|
173
|
+
:SSLCACertificateFile => File.join(DIR, 'ca.cert'),
|
174
|
+
:SSLCertificate => cert('server.cert'),
|
175
|
+
:SSLPrivateKey => key('server.key'),
|
176
|
+
:SSLVerifyClient => nil, #OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT|OpenSSL::SSL::VERIFY_PEER,
|
177
|
+
:SSLClientCA => cert('ca.cert'),
|
178
|
+
:SSLCertName => nil
|
179
|
+
)
|
180
|
+
@serverport = @server.config[:Port]
|
181
|
+
[:hello].each do |sym|
|
182
|
+
@server.mount(
|
183
|
+
"/#{sym}",
|
184
|
+
WEBrick::HTTPServlet::ProcHandler.new(method("do_#{sym}").to_proc)
|
185
|
+
)
|
186
|
+
end
|
187
|
+
@server_thread = start_server_thread(@server)
|
188
|
+
end
|
189
|
+
|
190
|
+
def do_hello(req, res)
|
191
|
+
res['content-type'] = 'text/html'
|
192
|
+
res.body = "hello"
|
193
|
+
end
|
194
|
+
|
195
|
+
def start_server_thread(server)
|
196
|
+
t = Thread.new {
|
197
|
+
Thread.current.abort_on_exception = true
|
198
|
+
server.start
|
199
|
+
}
|
200
|
+
while server.status != :Running
|
201
|
+
sleep 0.1
|
202
|
+
unless t.alive?
|
203
|
+
t.join
|
204
|
+
raise
|
205
|
+
end
|
206
|
+
end
|
207
|
+
t
|
208
|
+
end
|
209
|
+
|
210
|
+
def verify_callback(ok, cert)
|
211
|
+
@verify_callback_called = true
|
212
|
+
p ["client", ok, cert] if $DEBUG
|
213
|
+
ok
|
214
|
+
end
|
215
|
+
end
|
metadata
CHANGED
@@ -1,79 +1,94 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: httpclient
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.2.1
|
4
5
|
prerelease:
|
5
|
-
version: 2.2.0.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
-
|
7
|
+
authors:
|
8
|
+
- Hiroshi Nakamura
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
date: 2011-04-25 00:00:00 Z
|
12
|
+
date: 2011-06-02 00:00:00.000000000 Z
|
14
13
|
dependencies: []
|
15
|
-
|
16
14
|
description:
|
17
15
|
email: nahi@ruby-lang.org
|
18
16
|
executables: []
|
19
|
-
|
20
17
|
extensions: []
|
21
|
-
|
22
18
|
extra_rdoc_files: []
|
23
|
-
|
24
|
-
files:
|
19
|
+
files:
|
25
20
|
- lib/oauthclient.rb
|
26
|
-
- lib/http-access2.rbc
|
27
21
|
- lib/http-access2.rb
|
28
|
-
- lib/httpclient.rbc
|
29
22
|
- lib/http-access2/cookie.rb
|
30
23
|
- lib/http-access2/http.rb
|
31
24
|
- lib/hexdump.rb
|
32
|
-
- lib/httpclient/ssl_config.rbc
|
33
25
|
- lib/httpclient/cacert_sha1.p7s
|
34
|
-
- lib/httpclient/http.rbc
|
35
26
|
- lib/httpclient/cookie.rb
|
36
|
-
- lib/httpclient/session.rbc
|
37
|
-
- lib/httpclient/auth.rbc
|
38
27
|
- lib/httpclient/session.rb
|
39
|
-
- lib/httpclient/cookie.rbc
|
40
28
|
- lib/httpclient/timeout.rb
|
41
29
|
- lib/httpclient/util.rb
|
42
30
|
- lib/httpclient/cacert.p7s
|
43
31
|
- lib/httpclient/ssl_config.rb
|
44
32
|
- lib/httpclient/connection.rb
|
45
33
|
- lib/httpclient/auth.rb
|
46
|
-
- lib/httpclient/timeout.rbc
|
47
|
-
- lib/httpclient/connection.rbc
|
48
|
-
- lib/httpclient/util.rbc
|
49
34
|
- lib/httpclient/http.rb
|
50
35
|
- lib/httpclient.rb
|
36
|
+
- sample/async.rb
|
37
|
+
- sample/howto.rb
|
38
|
+
- sample/cookie.rb
|
39
|
+
- sample/oauth_buzz.rb
|
40
|
+
- sample/wcat.rb
|
41
|
+
- sample/oauth_twitter.rb
|
42
|
+
- sample/dav.rb
|
43
|
+
- sample/thread.rb
|
44
|
+
- sample/stream.rb
|
45
|
+
- sample/ssl/0key.pem
|
46
|
+
- sample/ssl/ssl_client.rb
|
47
|
+
- sample/ssl/htdocs/index.html
|
48
|
+
- sample/ssl/webrick_httpsd.rb
|
49
|
+
- sample/ssl/0cert.pem
|
50
|
+
- sample/ssl/1000cert.pem
|
51
|
+
- sample/ssl/1000key.pem
|
52
|
+
- sample/oauth_friendfeed.rb
|
53
|
+
- sample/auth.rb
|
54
|
+
- test/test_cookie.rb
|
55
|
+
- test/htpasswd
|
56
|
+
- test/test_httpclient.rb
|
57
|
+
- test/test_auth.rb
|
58
|
+
- test/runner.rb
|
59
|
+
- test/helper.rb
|
60
|
+
- test/subca.cert
|
61
|
+
- test/server.key
|
62
|
+
- test/client.key
|
63
|
+
- test/ca.cert
|
64
|
+
- test/htdigest
|
65
|
+
- test/test_http-access2.rb
|
66
|
+
- test/server.cert
|
67
|
+
- test/test_ssl.rb
|
68
|
+
- test/client.cert
|
69
|
+
- test/sslsvr.rb
|
51
70
|
homepage: http://github.com/nahi/httpclient
|
52
71
|
licenses: []
|
53
|
-
|
54
72
|
post_install_message:
|
55
73
|
rdoc_options: []
|
56
|
-
|
57
|
-
require_paths:
|
74
|
+
require_paths:
|
58
75
|
- lib
|
59
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
76
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
77
|
none: false
|
61
|
-
requirements:
|
62
|
-
- -
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version:
|
65
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ! '>='
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
83
|
none: false
|
67
|
-
requirements:
|
68
|
-
- -
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version:
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
71
88
|
requirements: []
|
72
|
-
|
73
89
|
rubyforge_project:
|
74
|
-
rubygems_version: 1.
|
90
|
+
rubygems_version: 1.8.4
|
75
91
|
signing_key:
|
76
92
|
specification_version: 3
|
77
93
|
summary: gives something like the functionality of libwww-perl (LWP) in Ruby
|
78
94
|
test_files: []
|
79
|
-
|
data/lib/http-access2.rbc
DELETED
@@ -1,732 +0,0 @@
|
|
1
|
-
!RBIX
|
2
|
-
10485556469317998123
|
3
|
-
x
|
4
|
-
M
|
5
|
-
1
|
6
|
-
n
|
7
|
-
n
|
8
|
-
x
|
9
|
-
10
|
10
|
-
__script__
|
11
|
-
i
|
12
|
-
37
|
13
|
-
5
|
14
|
-
7
|
15
|
-
0
|
16
|
-
64
|
17
|
-
47
|
18
|
-
49
|
19
|
-
1
|
20
|
-
1
|
21
|
-
15
|
22
|
-
99
|
23
|
-
7
|
24
|
-
2
|
25
|
-
65
|
26
|
-
49
|
27
|
-
3
|
28
|
-
2
|
29
|
-
13
|
30
|
-
99
|
31
|
-
12
|
32
|
-
7
|
33
|
-
4
|
34
|
-
12
|
35
|
-
7
|
36
|
-
5
|
37
|
-
12
|
38
|
-
65
|
39
|
-
12
|
40
|
-
49
|
41
|
-
6
|
42
|
-
4
|
43
|
-
15
|
44
|
-
49
|
45
|
-
4
|
46
|
-
0
|
47
|
-
15
|
48
|
-
2
|
49
|
-
11
|
50
|
-
I
|
51
|
-
6
|
52
|
-
I
|
53
|
-
0
|
54
|
-
I
|
55
|
-
0
|
56
|
-
I
|
57
|
-
0
|
58
|
-
n
|
59
|
-
p
|
60
|
-
7
|
61
|
-
s
|
62
|
-
10
|
63
|
-
httpclient
|
64
|
-
x
|
65
|
-
7
|
66
|
-
require
|
67
|
-
x
|
68
|
-
11
|
69
|
-
HTTPAccess2
|
70
|
-
x
|
71
|
-
11
|
72
|
-
open_module
|
73
|
-
x
|
74
|
-
15
|
75
|
-
__module_init__
|
76
|
-
M
|
77
|
-
1
|
78
|
-
n
|
79
|
-
n
|
80
|
-
x
|
81
|
-
11
|
82
|
-
HTTPAccess2
|
83
|
-
i
|
84
|
-
274
|
85
|
-
5
|
86
|
-
66
|
87
|
-
65
|
88
|
-
7
|
89
|
-
0
|
90
|
-
44
|
91
|
-
43
|
92
|
-
1
|
93
|
-
43
|
94
|
-
0
|
95
|
-
49
|
96
|
-
2
|
97
|
-
2
|
98
|
-
15
|
99
|
-
65
|
100
|
-
7
|
101
|
-
3
|
102
|
-
44
|
103
|
-
43
|
104
|
-
1
|
105
|
-
43
|
106
|
-
3
|
107
|
-
49
|
108
|
-
2
|
109
|
-
2
|
110
|
-
15
|
111
|
-
65
|
112
|
-
7
|
113
|
-
4
|
114
|
-
44
|
115
|
-
43
|
116
|
-
1
|
117
|
-
43
|
118
|
-
4
|
119
|
-
49
|
120
|
-
2
|
121
|
-
2
|
122
|
-
15
|
123
|
-
65
|
124
|
-
7
|
125
|
-
5
|
126
|
-
44
|
127
|
-
43
|
128
|
-
1
|
129
|
-
43
|
130
|
-
5
|
131
|
-
49
|
132
|
-
2
|
133
|
-
2
|
134
|
-
15
|
135
|
-
65
|
136
|
-
7
|
137
|
-
6
|
138
|
-
2
|
139
|
-
49
|
140
|
-
2
|
141
|
-
2
|
142
|
-
15
|
143
|
-
65
|
144
|
-
7
|
145
|
-
7
|
146
|
-
44
|
147
|
-
43
|
148
|
-
1
|
149
|
-
43
|
150
|
-
7
|
151
|
-
49
|
152
|
-
2
|
153
|
-
2
|
154
|
-
15
|
155
|
-
99
|
156
|
-
7
|
157
|
-
8
|
158
|
-
44
|
159
|
-
43
|
160
|
-
1
|
161
|
-
65
|
162
|
-
49
|
163
|
-
9
|
164
|
-
3
|
165
|
-
13
|
166
|
-
99
|
167
|
-
12
|
168
|
-
7
|
169
|
-
10
|
170
|
-
12
|
171
|
-
7
|
172
|
-
11
|
173
|
-
12
|
174
|
-
65
|
175
|
-
12
|
176
|
-
49
|
177
|
-
12
|
178
|
-
4
|
179
|
-
15
|
180
|
-
49
|
181
|
-
10
|
182
|
-
0
|
183
|
-
15
|
184
|
-
65
|
185
|
-
7
|
186
|
-
13
|
187
|
-
44
|
188
|
-
43
|
189
|
-
1
|
190
|
-
43
|
191
|
-
13
|
192
|
-
49
|
193
|
-
2
|
194
|
-
2
|
195
|
-
15
|
196
|
-
65
|
197
|
-
7
|
198
|
-
14
|
199
|
-
44
|
200
|
-
43
|
201
|
-
1
|
202
|
-
43
|
203
|
-
14
|
204
|
-
49
|
205
|
-
2
|
206
|
-
2
|
207
|
-
15
|
208
|
-
65
|
209
|
-
7
|
210
|
-
15
|
211
|
-
44
|
212
|
-
43
|
213
|
-
1
|
214
|
-
43
|
215
|
-
15
|
216
|
-
49
|
217
|
-
2
|
218
|
-
2
|
219
|
-
15
|
220
|
-
65
|
221
|
-
7
|
222
|
-
16
|
223
|
-
44
|
224
|
-
43
|
225
|
-
1
|
226
|
-
43
|
227
|
-
16
|
228
|
-
49
|
229
|
-
2
|
230
|
-
2
|
231
|
-
15
|
232
|
-
65
|
233
|
-
7
|
234
|
-
17
|
235
|
-
44
|
236
|
-
43
|
237
|
-
1
|
238
|
-
43
|
239
|
-
17
|
240
|
-
49
|
241
|
-
2
|
242
|
-
2
|
243
|
-
15
|
244
|
-
65
|
245
|
-
7
|
246
|
-
18
|
247
|
-
44
|
248
|
-
43
|
249
|
-
1
|
250
|
-
43
|
251
|
-
18
|
252
|
-
49
|
253
|
-
2
|
254
|
-
2
|
255
|
-
15
|
256
|
-
65
|
257
|
-
7
|
258
|
-
19
|
259
|
-
44
|
260
|
-
43
|
261
|
-
1
|
262
|
-
43
|
263
|
-
19
|
264
|
-
49
|
265
|
-
2
|
266
|
-
2
|
267
|
-
15
|
268
|
-
65
|
269
|
-
7
|
270
|
-
20
|
271
|
-
44
|
272
|
-
43
|
273
|
-
1
|
274
|
-
43
|
275
|
-
20
|
276
|
-
49
|
277
|
-
2
|
278
|
-
2
|
279
|
-
15
|
280
|
-
65
|
281
|
-
7
|
282
|
-
21
|
283
|
-
44
|
284
|
-
43
|
285
|
-
1
|
286
|
-
43
|
287
|
-
21
|
288
|
-
49
|
289
|
-
2
|
290
|
-
2
|
291
|
-
15
|
292
|
-
65
|
293
|
-
7
|
294
|
-
22
|
295
|
-
44
|
296
|
-
43
|
297
|
-
1
|
298
|
-
43
|
299
|
-
22
|
300
|
-
49
|
301
|
-
2
|
302
|
-
2
|
303
|
-
15
|
304
|
-
65
|
305
|
-
7
|
306
|
-
23
|
307
|
-
44
|
308
|
-
43
|
309
|
-
1
|
310
|
-
43
|
311
|
-
23
|
312
|
-
49
|
313
|
-
2
|
314
|
-
2
|
315
|
-
15
|
316
|
-
65
|
317
|
-
7
|
318
|
-
24
|
319
|
-
44
|
320
|
-
43
|
321
|
-
1
|
322
|
-
43
|
323
|
-
24
|
324
|
-
49
|
325
|
-
2
|
326
|
-
2
|
327
|
-
15
|
328
|
-
99
|
329
|
-
7
|
330
|
-
25
|
331
|
-
44
|
332
|
-
43
|
333
|
-
1
|
334
|
-
43
|
335
|
-
25
|
336
|
-
65
|
337
|
-
49
|
338
|
-
9
|
339
|
-
3
|
340
|
-
13
|
341
|
-
99
|
342
|
-
12
|
343
|
-
7
|
344
|
-
10
|
345
|
-
12
|
346
|
-
7
|
347
|
-
26
|
348
|
-
12
|
349
|
-
65
|
350
|
-
12
|
351
|
-
49
|
352
|
-
12
|
353
|
-
4
|
354
|
-
15
|
355
|
-
49
|
356
|
-
10
|
357
|
-
0
|
358
|
-
11
|
359
|
-
I
|
360
|
-
6
|
361
|
-
I
|
362
|
-
0
|
363
|
-
I
|
364
|
-
0
|
365
|
-
I
|
366
|
-
0
|
367
|
-
n
|
368
|
-
p
|
369
|
-
27
|
370
|
-
x
|
371
|
-
7
|
372
|
-
VERSION
|
373
|
-
x
|
374
|
-
10
|
375
|
-
HTTPClient
|
376
|
-
x
|
377
|
-
9
|
378
|
-
const_set
|
379
|
-
x
|
380
|
-
19
|
381
|
-
RUBY_VERSION_STRING
|
382
|
-
x
|
383
|
-
10
|
384
|
-
SSLEnabled
|
385
|
-
x
|
386
|
-
11
|
387
|
-
SSPIEnabled
|
388
|
-
x
|
389
|
-
9
|
390
|
-
DEBUG_SSL
|
391
|
-
x
|
392
|
-
4
|
393
|
-
Util
|
394
|
-
x
|
395
|
-
6
|
396
|
-
Client
|
397
|
-
x
|
398
|
-
10
|
399
|
-
open_class
|
400
|
-
x
|
401
|
-
14
|
402
|
-
__class_init__
|
403
|
-
M
|
404
|
-
1
|
405
|
-
n
|
406
|
-
n
|
407
|
-
x
|
408
|
-
6
|
409
|
-
Client
|
410
|
-
i
|
411
|
-
15
|
412
|
-
5
|
413
|
-
66
|
414
|
-
99
|
415
|
-
7
|
416
|
-
0
|
417
|
-
45
|
418
|
-
1
|
419
|
-
2
|
420
|
-
65
|
421
|
-
49
|
422
|
-
3
|
423
|
-
3
|
424
|
-
15
|
425
|
-
1
|
426
|
-
11
|
427
|
-
I
|
428
|
-
4
|
429
|
-
I
|
430
|
-
0
|
431
|
-
I
|
432
|
-
0
|
433
|
-
I
|
434
|
-
0
|
435
|
-
n
|
436
|
-
p
|
437
|
-
4
|
438
|
-
x
|
439
|
-
17
|
440
|
-
RetryableResponse
|
441
|
-
x
|
442
|
-
13
|
443
|
-
StandardError
|
444
|
-
n
|
445
|
-
x
|
446
|
-
10
|
447
|
-
open_class
|
448
|
-
p
|
449
|
-
3
|
450
|
-
I
|
451
|
-
2
|
452
|
-
I
|
453
|
-
1a
|
454
|
-
I
|
455
|
-
f
|
456
|
-
x
|
457
|
-
45
|
458
|
-
/home/nahi/git/httpclient/lib/http-access2.rb
|
459
|
-
p
|
460
|
-
0
|
461
|
-
x
|
462
|
-
13
|
463
|
-
attach_method
|
464
|
-
x
|
465
|
-
9
|
466
|
-
SSLConfig
|
467
|
-
x
|
468
|
-
9
|
469
|
-
BasicAuth
|
470
|
-
x
|
471
|
-
10
|
472
|
-
DigestAuth
|
473
|
-
x
|
474
|
-
13
|
475
|
-
NegotiateAuth
|
476
|
-
x
|
477
|
-
14
|
478
|
-
AuthFilterBase
|
479
|
-
x
|
480
|
-
7
|
481
|
-
WWWAuth
|
482
|
-
x
|
483
|
-
9
|
484
|
-
ProxyAuth
|
485
|
-
x
|
486
|
-
4
|
487
|
-
Site
|
488
|
-
x
|
489
|
-
10
|
490
|
-
Connection
|
491
|
-
x
|
492
|
-
14
|
493
|
-
SessionManager
|
494
|
-
x
|
495
|
-
13
|
496
|
-
SSLSocketWrap
|
497
|
-
x
|
498
|
-
11
|
499
|
-
DebugSocket
|
500
|
-
x
|
501
|
-
7
|
502
|
-
Session
|
503
|
-
M
|
504
|
-
1
|
505
|
-
n
|
506
|
-
n
|
507
|
-
x
|
508
|
-
7
|
509
|
-
Session
|
510
|
-
i
|
511
|
-
54
|
512
|
-
5
|
513
|
-
66
|
514
|
-
99
|
515
|
-
7
|
516
|
-
0
|
517
|
-
45
|
518
|
-
1
|
519
|
-
2
|
520
|
-
65
|
521
|
-
49
|
522
|
-
3
|
523
|
-
3
|
524
|
-
15
|
525
|
-
1
|
526
|
-
15
|
527
|
-
99
|
528
|
-
7
|
529
|
-
4
|
530
|
-
45
|
531
|
-
0
|
532
|
-
5
|
533
|
-
65
|
534
|
-
49
|
535
|
-
3
|
536
|
-
3
|
537
|
-
15
|
538
|
-
1
|
539
|
-
15
|
540
|
-
99
|
541
|
-
7
|
542
|
-
6
|
543
|
-
45
|
544
|
-
0
|
545
|
-
7
|
546
|
-
65
|
547
|
-
49
|
548
|
-
3
|
549
|
-
3
|
550
|
-
15
|
551
|
-
1
|
552
|
-
15
|
553
|
-
99
|
554
|
-
7
|
555
|
-
8
|
556
|
-
45
|
557
|
-
0
|
558
|
-
9
|
559
|
-
65
|
560
|
-
49
|
561
|
-
3
|
562
|
-
3
|
563
|
-
15
|
564
|
-
1
|
565
|
-
11
|
566
|
-
I
|
567
|
-
4
|
568
|
-
I
|
569
|
-
0
|
570
|
-
I
|
571
|
-
0
|
572
|
-
I
|
573
|
-
0
|
574
|
-
n
|
575
|
-
p
|
576
|
-
10
|
577
|
-
x
|
578
|
-
5
|
579
|
-
Error
|
580
|
-
x
|
581
|
-
13
|
582
|
-
StandardError
|
583
|
-
n
|
584
|
-
x
|
585
|
-
10
|
586
|
-
open_class
|
587
|
-
x
|
588
|
-
12
|
589
|
-
InvalidState
|
590
|
-
n
|
591
|
-
x
|
592
|
-
11
|
593
|
-
BadResponse
|
594
|
-
n
|
595
|
-
x
|
596
|
-
21
|
597
|
-
KeepAliveDisconnected
|
598
|
-
n
|
599
|
-
p
|
600
|
-
9
|
601
|
-
I
|
602
|
-
2
|
603
|
-
I
|
604
|
-
2c
|
605
|
-
I
|
606
|
-
f
|
607
|
-
I
|
608
|
-
2e
|
609
|
-
I
|
610
|
-
1c
|
611
|
-
I
|
612
|
-
30
|
613
|
-
I
|
614
|
-
29
|
615
|
-
I
|
616
|
-
32
|
617
|
-
I
|
618
|
-
36
|
619
|
-
x
|
620
|
-
45
|
621
|
-
/home/nahi/git/httpclient/lib/http-access2.rb
|
622
|
-
p
|
623
|
-
0
|
624
|
-
p
|
625
|
-
41
|
626
|
-
I
|
627
|
-
2
|
628
|
-
I
|
629
|
-
11
|
630
|
-
I
|
631
|
-
e
|
632
|
-
I
|
633
|
-
12
|
634
|
-
I
|
635
|
-
1a
|
636
|
-
I
|
637
|
-
13
|
638
|
-
I
|
639
|
-
26
|
640
|
-
I
|
641
|
-
14
|
642
|
-
I
|
643
|
-
32
|
644
|
-
I
|
645
|
-
15
|
646
|
-
I
|
647
|
-
3a
|
648
|
-
I
|
649
|
-
17
|
650
|
-
I
|
651
|
-
46
|
652
|
-
I
|
653
|
-
19
|
654
|
-
I
|
655
|
-
63
|
656
|
-
I
|
657
|
-
1e
|
658
|
-
I
|
659
|
-
6f
|
660
|
-
I
|
661
|
-
1f
|
662
|
-
I
|
663
|
-
7b
|
664
|
-
I
|
665
|
-
20
|
666
|
-
I
|
667
|
-
87
|
668
|
-
I
|
669
|
-
21
|
670
|
-
I
|
671
|
-
93
|
672
|
-
I
|
673
|
-
22
|
674
|
-
I
|
675
|
-
9f
|
676
|
-
I
|
677
|
-
23
|
678
|
-
I
|
679
|
-
ab
|
680
|
-
I
|
681
|
-
24
|
682
|
-
I
|
683
|
-
b7
|
684
|
-
I
|
685
|
-
25
|
686
|
-
I
|
687
|
-
c3
|
688
|
-
I
|
689
|
-
26
|
690
|
-
I
|
691
|
-
cf
|
692
|
-
I
|
693
|
-
27
|
694
|
-
I
|
695
|
-
db
|
696
|
-
I
|
697
|
-
28
|
698
|
-
I
|
699
|
-
e7
|
700
|
-
I
|
701
|
-
29
|
702
|
-
I
|
703
|
-
f3
|
704
|
-
I
|
705
|
-
2b
|
706
|
-
I
|
707
|
-
112
|
708
|
-
x
|
709
|
-
45
|
710
|
-
/home/nahi/git/httpclient/lib/http-access2.rb
|
711
|
-
p
|
712
|
-
0
|
713
|
-
x
|
714
|
-
13
|
715
|
-
attach_method
|
716
|
-
p
|
717
|
-
5
|
718
|
-
I
|
719
|
-
0
|
720
|
-
I
|
721
|
-
d
|
722
|
-
I
|
723
|
-
9
|
724
|
-
I
|
725
|
-
10
|
726
|
-
I
|
727
|
-
25
|
728
|
-
x
|
729
|
-
45
|
730
|
-
/home/nahi/git/httpclient/lib/http-access2.rb
|
731
|
-
p
|
732
|
-
0
|