httpclient 2.3.4.1 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/{README.txt → README.md} +217 -56
- data/lib/httpclient.rb +11 -7
- data/lib/httpclient/auth.rb +242 -158
- data/lib/httpclient/cacert.p7s +3865 -1911
- data/lib/httpclient/cookie.rb +1 -1
- data/lib/httpclient/http.rb +2 -0
- data/lib/httpclient/session.rb +10 -7
- data/lib/httpclient/ssl_config.rb +12 -5
- data/lib/httpclient/version.rb +1 -1
- data/sample/api_rest.pdf +19942 -24
- data/sample/oauth_twitter.rb +4 -4
- data/sample/post.rb +11 -0
- data/test/client-pass.key +18 -0
- data/test/helper.rb +3 -3
- data/test/reports/TEST-HTTPAccess2-TestClient.xml +221 -0
- data/test/reports/TEST-TestCookie.xml +21 -0
- data/test/reports/TEST-TestCookieManager.xml +35 -0
- data/test/reports/TEST-TestHTTPClient.xml +147 -0
- data/test/reports/TEST-TestSSL.0.xml +0 -0
- data/test/reports/TEST-TestSSL.1.xml +81 -0
- data/test/reports/TEST-TestSSL.xml +0 -0
- data/test/test_auth.rb +59 -2
- data/test/test_cookie.rb +21 -0
- data/test/test_httpclient.rb +33 -1
- data/test/test_ssl.rb +1 -1
- metadata +55 -52
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1f6d591e54f4bc86c236ad7e881727379da4ad0b
|
4
|
+
data.tar.gz: 15d8bc12ca3476af63ea9f020d2a19d7434b348a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0bad356e02f908346a39f3d735827a200715a70a4c27d2f0ca8e6efae79e18816bbddb0eb290bc404dca6851a21e6543d22ca6a9415f17550552018f56149e3b
|
7
|
+
data.tar.gz: 7e2d85bb7da156d7aeb5c738b2233c830d7d8e614793310eb62618a9b1c5700aa3b5590ee1f11a2ce420c61c585bd8d8e2d86db6d53a9c1e7fd20c6475ed793d
|
data/{README.txt → README.md}
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
httpclient - HTTP accessing library.
|
2
|
-
Copyright (C) 2000-
|
2
|
+
Copyright (C) 2000-2014 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
|
3
3
|
|
4
4
|
'httpclient' gives something like the functionality of libwww-perl (LWP) in
|
5
5
|
Ruby. 'httpclient' formerly known as 'http-access2'.
|
@@ -7,13 +7,12 @@ Ruby. 'httpclient' formerly known as 'http-access2'.
|
|
7
7
|
See HTTPClient for documentation.
|
8
8
|
|
9
9
|
|
10
|
-
|
10
|
+
## Features
|
11
11
|
|
12
12
|
* methods like GET/HEAD/POST/* via HTTP/1.1.
|
13
13
|
* HTTPS(SSL), Cookies, proxy, authentication(Digest, NTLM, Basic), etc.
|
14
14
|
* asynchronous HTTP request, streaming HTTP request.
|
15
15
|
* debug mode CLI.
|
16
|
-
|
17
16
|
* by contrast with net/http in standard distribution;
|
18
17
|
* Cookies support
|
19
18
|
* MT-safe
|
@@ -24,31 +23,32 @@ See HTTPClient for documentation.
|
|
24
23
|
* extensible with filter interface
|
25
24
|
* you don't have to care HTTP/1.1 persistent connection
|
26
25
|
(httpclient cares instead of you)
|
27
|
-
|
28
26
|
* Not supported now
|
29
27
|
* Cache
|
30
28
|
* Rather advanced HTTP/1.1 usage such as Range, deflate, etc.
|
31
29
|
(of course you can set it in header by yourself)
|
32
30
|
|
33
|
-
|
31
|
+
## httpclient command
|
34
32
|
|
35
|
-
Usage: 1)
|
36
|
-
Usage: 2)
|
33
|
+
Usage: 1) `httpclient get https://www.google.co.jp/ q=ruby`
|
34
|
+
Usage: 2) `httpclient`
|
37
35
|
|
38
36
|
For 1) it issues a GET request to the given URI and shows the wiredump and
|
39
37
|
the parsed result. For 2) it invokes irb shell with the binding that has a
|
40
38
|
HTTPClient as 'self'. You can call HTTPClient instance methods like;
|
41
39
|
|
42
|
-
|
40
|
+
```ruby
|
41
|
+
get "https://www.google.co.jp/", :q => :ruby
|
42
|
+
```
|
43
43
|
|
44
|
-
|
44
|
+
## Author
|
45
45
|
|
46
46
|
Name:: Hiroshi Nakamura
|
47
47
|
E-mail:: nahi@ruby-lang.org
|
48
48
|
Project web site:: http://github.com/nahi/httpclient
|
49
49
|
|
50
50
|
|
51
|
-
|
51
|
+
## License
|
52
52
|
|
53
53
|
This program is copyrighted free software by NAKAMURA, Hiroshi. You can
|
54
54
|
redistribute it and/or modify it under the same terms of Ruby's license;
|
@@ -61,40 +61,23 @@ I asked Maebashi-san he agreed that I can redistribute it under the same terms
|
|
61
61
|
of Ruby. Many thanks to Maebashi-san.
|
62
62
|
|
63
63
|
|
64
|
-
|
65
|
-
|
66
|
-
=== Gem
|
67
|
-
|
68
|
-
You can install httpclient with rubygems.
|
69
|
-
|
70
|
-
% gem install httpclient
|
71
|
-
|
72
|
-
=== Package
|
64
|
+
## Install
|
73
65
|
|
74
|
-
You can install httpclient
|
66
|
+
You can install httpclient via rubygems: `gem install httpclient`
|
75
67
|
|
76
|
-
$ ruby install.rb
|
77
68
|
|
78
|
-
|
79
|
-
/usr/local/lib/ruby/site_ruby/1.8/.
|
80
|
-
|
81
|
-
For uninstall, delete installed files from your site_ruby directory.
|
82
|
-
|
83
|
-
|
84
|
-
== Usage
|
69
|
+
## Usage
|
85
70
|
|
86
71
|
See HTTPClient for documentation.
|
87
72
|
You can also check sample/howto.rb how to use APIs.
|
88
73
|
|
89
74
|
|
90
|
-
|
75
|
+
## Download
|
91
76
|
|
92
77
|
* Gem repository
|
93
78
|
* https://rubygems.org/gems/httpclient
|
94
79
|
|
95
|
-
|
96
|
-
|
97
|
-
== Bug report or Feature request
|
80
|
+
## Bug report or Feature request
|
98
81
|
|
99
82
|
Please file a ticket at the project web site.
|
100
83
|
|
@@ -105,31 +88,109 @@ Please file a ticket at the project web site.
|
|
105
88
|
Thanks in advance.
|
106
89
|
|
107
90
|
|
108
|
-
|
91
|
+
## Changes
|
92
|
+
|
93
|
+
### Changes in 2.4.0
|
109
94
|
|
110
|
-
|
95
|
+
Jun 8, 2014 - version 2.4.0
|
111
96
|
|
112
|
-
|
97
|
+
**IMPORTANT CHANGES**
|
98
|
+
|
99
|
+
This version changes default SSL version to :auto (same as nil) to use SSL/TLS
|
100
|
+
version negotiation. Former versions use SSLv3 as default that does not connect
|
101
|
+
via TLS. This change makes underlying OpenSSL library decide which SSL/TLS
|
102
|
+
version to use but SSLv2 is disabled.
|
103
|
+
|
104
|
+
This change makes your secure connection safer but if you see SSL connection
|
105
|
+
failure with this version try specifying SSL version to use SSLv3 like;
|
106
|
+
```
|
107
|
+
client = HTTPClient.new
|
108
|
+
client.ssl_config.ssl_version = :SSLv3
|
109
|
+
```
|
110
|
+
|
111
|
+
* Bug fixes
|
112
|
+
* Avoid unnecessary connection retries for OAuth error.
|
113
|
+
[#203](https://github.com/nahi/httpclient/issues/203)
|
114
|
+
* Make authentication drivers Thread-safe. Note that HTTPClient instance is
|
115
|
+
Thread-safe for authentication state update but it shares authentication
|
116
|
+
state across threads by design. If you don't want to share authentication
|
117
|
+
state, such as for using different authentication username/password pair
|
118
|
+
per thread, create HTTPClient instance for each Thread.
|
119
|
+
[#200](https://github.com/nahi/httpclient/issues/200)
|
120
|
+
* Avoid chunked String recycle in callback block.
|
121
|
+
[#193](https://github.com/nahi/httpclient/issues/193)
|
122
|
+
* Do not send empty 'oauth_token' in signed request for compatibility.
|
123
|
+
[#188](https://github.com/nahi/httpclient/issues/188)
|
124
|
+
* Ignore negative Content-Length header from server.
|
125
|
+
[#175](https://github.com/nahi/httpclient/issues/175)
|
126
|
+
* Fix incorrect use of absolute URL for HTTPS proxy requests.
|
127
|
+
[#168](https://github.com/nahi/httpclient/issues/168)
|
128
|
+
* Handle UTF characters in chunked bodies.
|
129
|
+
[#167](https://github.com/nahi/httpclient/issues/167)
|
130
|
+
* A new cookie never be accepted if an HTTPClient has the same expired cookie.
|
131
|
+
[#154](https://github.com/nahi/httpclient/issues/154)
|
132
|
+
* Allow spaces in NO_PROXY environment like; "hosta, hostb"
|
133
|
+
[#141](https://github.com/nahi/httpclient/issues/141)
|
134
|
+
* Avoid HttpClient::Message::Body#dump causes Encoding::CompatibilityError.
|
135
|
+
[#140](https://github.com/nahi/httpclient/issues/140)
|
113
136
|
|
114
137
|
* Changes
|
138
|
+
* Change default SSL version to :auto to use version negotiation.
|
139
|
+
[#186](https://github.com/nahi/httpclient/issues/186),
|
140
|
+
[#204](https://github.com/nahi/httpclient/issues/204)
|
141
|
+
* Allow to pass client private key passphrase in SSLConfig.
|
142
|
+
[#201](https://github.com/nahi/httpclient/issues/201)
|
143
|
+
* Convert README to markdown syntax
|
144
|
+
[#198](https://github.com/nahi/httpclient/issues/198)
|
145
|
+
* Update default CA certificates: change the source from JDK's to Firefox's.
|
146
|
+
The file is downloaded from
|
147
|
+
https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt
|
148
|
+
(Certificate data from Mozilla as of: Tue Apr 22 08:29:31 2014)
|
149
|
+
[#195](https://github.com/nahi/httpclient/issues/195)
|
150
|
+
* Callback block can be defined as to get 2 arguments to retrieve the
|
151
|
+
response object.
|
152
|
+
[#194](https://github.com/nahi/httpclient/issues/194)
|
153
|
+
* Remove [] from given address for IPv6 compat.
|
154
|
+
[#176](https://github.com/nahi/httpclient/issues/176)
|
155
|
+
* Update API endpoints to those of Twitter REST API v1.1.
|
156
|
+
[#150](https://github.com/nahi/httpclient/issues/150)
|
157
|
+
|
158
|
+
|
159
|
+
### Changes in 2.3.4
|
160
|
+
|
161
|
+
July 27, 2013 - version 2.3.4
|
115
162
|
|
116
|
-
|
117
|
-
|
163
|
+
* Bug fixes
|
164
|
+
* Make sure to read socket in BINARY buffer.
|
165
|
+
[#171](https://github.com/nahi/httpclient/issues/171)
|
118
166
|
|
119
|
-
|
167
|
+
### Changes in 2.3.3
|
120
168
|
|
121
|
-
|
169
|
+
February 24, 2013 - version 2.3.3
|
122
170
|
|
171
|
+
* Changes
|
172
|
+
|
173
|
+
* Add User-Agent field by default. You can remove the header by setting nil
|
174
|
+
to HTTPClient#agent_name.
|
175
|
+
[#144](https://github.com/nahi/httpclient/issues/144)
|
176
|
+
|
177
|
+
### Changes in 2.3.2
|
178
|
+
|
179
|
+
January 5, 2013 - version 2.3.2
|
180
|
+
|
181
|
+
```
|
123
182
|
* Changes
|
124
183
|
|
125
184
|
* #138 Revert Timeout change unintentionally included in v2.3.1. It's
|
126
185
|
reported that the change causes background processes not terminated
|
127
186
|
properly.
|
187
|
+
```
|
128
188
|
|
129
|
-
|
189
|
+
### Changes in 2.3.1
|
130
190
|
|
131
|
-
|
191
|
+
January 1, 2013 - version 2.3.1
|
132
192
|
|
193
|
+
```
|
133
194
|
* Changes
|
134
195
|
|
135
196
|
* #137 Signing key is expiring for cacert_sha1.p7s.
|
@@ -143,12 +204,14 @@ Thanks in advance.
|
|
143
204
|
* Bug fixes
|
144
205
|
|
145
206
|
* #122 Support IPv6 address in URI
|
207
|
+
```
|
146
208
|
|
147
209
|
|
148
|
-
|
210
|
+
### Changes in 2.3.0
|
149
211
|
|
150
|
-
|
212
|
+
October 10, 2012 - version 2.3.0
|
151
213
|
|
214
|
+
```
|
152
215
|
* Features
|
153
216
|
|
154
217
|
* Added debug mode CLI. bin/httpclient is installed as CLI.
|
@@ -175,20 +238,24 @@ Thanks in advance.
|
|
175
238
|
* #118 Support for boolean values when making POST/PUT requests with
|
176
239
|
multiipart/form Content-Type.
|
177
240
|
* #110 Allows leading dots in no_proxy hostname suffixes.
|
241
|
+
```
|
178
242
|
|
179
|
-
|
243
|
+
### Changes in 2.2.7
|
180
244
|
|
181
|
-
|
245
|
+
August 14, 2012 - version 2.2.7
|
182
246
|
|
247
|
+
```
|
183
248
|
* Bug fixes
|
184
249
|
|
185
250
|
* Fix arity incompatibility introduced in 2.2.6. It broke Webmock.
|
186
251
|
Thanks Andrew France for the report!
|
252
|
+
```
|
187
253
|
|
188
|
-
|
254
|
+
### Changes in 2.2.6
|
189
255
|
|
190
|
-
|
256
|
+
August 14, 2012 - version 2.2.6
|
191
257
|
|
258
|
+
```
|
192
259
|
* Bug fixes
|
193
260
|
|
194
261
|
* Make get_content doesn't raise a BadResponseError for perfectly good
|
@@ -215,11 +282,13 @@ Thanks in advance.
|
|
215
282
|
|
216
283
|
* Fill request parameters request_method, request_uri and request_query
|
217
284
|
as part of response Message::Header.
|
285
|
+
```
|
218
286
|
|
219
|
-
|
287
|
+
### Changes in 2.2.5
|
220
288
|
|
221
289
|
May 06, 2012 - version 2.2.5
|
222
290
|
|
291
|
+
```
|
223
292
|
* Bug fixes
|
224
293
|
|
225
294
|
* Added Magic encoding comment to hexdump.rb to avoid encoding error.
|
@@ -239,11 +308,13 @@ Thanks in advance.
|
|
239
308
|
HTTPClient instance to use OpenSSL's default trusted CA certificates.
|
240
309
|
* Allow to set Date header manually.
|
241
310
|
ex. clent.get(uri, :header => {'Date' => Time.now.httpdate})
|
311
|
+
```
|
242
312
|
|
243
|
-
|
313
|
+
### Changes in 2.2.4
|
244
314
|
|
245
315
|
Dec 08, 2011 - version 2.2.4
|
246
316
|
|
317
|
+
```
|
247
318
|
* Bug fixes
|
248
319
|
|
249
320
|
* Do not recycle buffer String object for yielding. When the response is
|
@@ -253,19 +324,23 @@ Thanks in advance.
|
|
253
324
|
* Set VERSION string in User-Agent header. $Id$ didn't work long time...
|
254
325
|
|
255
326
|
Bugs are reported by Seamus Abshere. Thanks!
|
327
|
+
```
|
256
328
|
|
257
|
-
|
329
|
+
### Changes in 2.2.3
|
258
330
|
|
259
331
|
Oct 28, 2011 - version 2.2.3
|
260
332
|
|
333
|
+
```
|
261
334
|
* Bug fixes
|
262
335
|
|
263
336
|
* Ruby 1.8.6 support. It's broken from 2.2.0.
|
337
|
+
```
|
264
338
|
|
265
|
-
|
339
|
+
### Changes in 2.2.2
|
266
340
|
|
267
341
|
Oct 17, 2011 - version 2.2.2
|
268
342
|
|
343
|
+
```
|
269
344
|
* Bug fixes
|
270
345
|
|
271
346
|
* Do not sort query params on request: Wrongly sorted query params for
|
@@ -293,11 +368,13 @@ Thanks in advance.
|
|
293
368
|
|
294
369
|
keep_alive_timeout is 15[sec] by default. The value is from the default
|
295
370
|
value for KeepAliveTimeout of Apache httpd 2. #68 #69
|
371
|
+
```
|
296
372
|
|
297
|
-
|
373
|
+
### Changes in 2.2.1
|
298
374
|
|
299
375
|
Jun 2, 2011 - version 2.2.1
|
300
376
|
|
377
|
+
```
|
301
378
|
* Bug fixes
|
302
379
|
|
303
380
|
* For Lighttpd + PUT/POST support, do not send a request using chunked
|
@@ -335,11 +412,13 @@ Thanks in advance.
|
|
335
412
|
|
336
413
|
* Changed default chunk size from 4K to 16K. It's used for reading size
|
337
414
|
at a time.
|
415
|
+
```
|
338
416
|
|
339
|
-
|
417
|
+
### Changes in 2.2.0
|
340
418
|
|
341
419
|
Apr 8, 2011 - version 2.2.0
|
342
420
|
|
421
|
+
```
|
343
422
|
* Features
|
344
423
|
* Add HTTPClient#cookies as an alias of #cookie_manager.cookies.
|
345
424
|
|
@@ -375,11 +454,13 @@ Thanks in advance.
|
|
375
454
|
This feature was disabled by c206b687952e1ad3e20c20e69bdbd1a9cb38609e at
|
376
455
|
2008-12-09. I should have written a test for keep-alive. Now I added it.
|
377
456
|
Thanks Takahiro Nishimura(@dr_taka_n) for finding this bug.
|
457
|
+
```
|
378
458
|
|
379
|
-
|
459
|
+
### Changes in 2.1.7
|
380
460
|
|
381
461
|
Mar 22, 2011 - version 2.1.7
|
382
462
|
|
463
|
+
```
|
383
464
|
* Features
|
384
465
|
* Add MD5-sess auth support. Thanks to wimm-dking. (#47)
|
385
466
|
* Add SNI support. (Server Name Indication of HTTPS connection) (#49)
|
@@ -387,11 +468,13 @@ Thanks in advance.
|
|
387
468
|
* NTLM logon to exchange Web Services. [experimental] Thanks to curzonj and mccraigmccraig (#52)
|
388
469
|
* Add HTTPOnly cookie support. Thanks to nbrosnahan. (#55)
|
389
470
|
* Add HTTPClient#socket_local for specifying local binding hostname and port of TCP socket. Thanks to icblenke.
|
471
|
+
```
|
390
472
|
|
391
|
-
|
473
|
+
### Changes in 2.1.6
|
392
474
|
|
393
475
|
Dec 20, 2010 - version 2.1.6
|
394
476
|
|
477
|
+
```
|
395
478
|
* IMPORTANT update for HTTPS(SSL) connection
|
396
479
|
* Trusted CA bundle file cacert_sha1.p7s for older environment (where
|
397
480
|
you cannot use SHA512 algorithm such as an old Mac OS X) included in
|
@@ -439,24 +522,30 @@ Thanks in advance.
|
|
439
522
|
gauleng.
|
440
523
|
* #38 DigestAuth + posting IO fails, patch by chetan.
|
441
524
|
* #41 https-over-proxy fails with IIS, patch by tai.
|
525
|
+
```
|
442
526
|
|
443
|
-
|
527
|
+
### Changes in 2.1.5
|
444
528
|
|
445
529
|
Jun 25, 2009 - version 2.1.5.2
|
446
530
|
|
531
|
+
```
|
447
532
|
* Added another cacert distribution certificate which uses
|
448
533
|
sha1WithRSAEncryption. OpenSSL/0.9.7 cannot handle non-SHA1 digest
|
449
534
|
algorithm for certificate. The new certificate is
|
450
535
|
RSA 2048 bit + SHA1 + notAfter:2010/12/31. Corresponding CA bundle file
|
451
536
|
is cacert_sha1.p7s. It is loaded only when cacert.p7s cannot be loaded
|
452
537
|
with the original distribution certificate.
|
538
|
+
```
|
453
539
|
|
454
540
|
Jun 11, 2009 - version 2.1.5.1
|
455
541
|
|
542
|
+
```
|
456
543
|
* README update.
|
544
|
+
```
|
457
545
|
|
458
546
|
Jun 8, 2009 - version 2.1.5
|
459
547
|
|
548
|
+
```
|
460
549
|
* IMPORTANT update for HTTPS(SSL) connection
|
461
550
|
* Trusted CA bundle file included in httpclient <= 2.1.4 expires in
|
462
551
|
Nov 2009. Please update to 2.1.5 by Oct 2009 if your application
|
@@ -492,9 +581,13 @@ Thanks in advance.
|
|
492
581
|
Thanks! (#217)
|
493
582
|
* Ensure to reset connection after invoking HTTPClient singleton methods
|
494
583
|
for accessing such as HTTPClient.get_content. Thanks to @xgavin! (#214)
|
584
|
+
```
|
585
|
+
|
586
|
+
### Changes in 2.1.4
|
495
587
|
|
496
588
|
Feb 13, 2009 - version 2.1.4
|
497
589
|
|
590
|
+
```
|
498
591
|
* Bug fixes
|
499
592
|
* When we hit some site through http-proxy we get a response without
|
500
593
|
Content-Length header. httpclient/2.1.3 drops response body for such
|
@@ -509,9 +602,13 @@ Thanks in advance.
|
|
509
602
|
* httpclient/2.1.3 cannot handle Cookie header with 'expires=' and
|
510
603
|
'expires=""'. Empty String for Time.parse returns Time.now unlike
|
511
604
|
ParseDate.parsedate. Thanks to Mark for the patch. (#200)
|
605
|
+
```
|
606
|
+
|
607
|
+
### Changes in 2.1.3
|
512
608
|
|
513
609
|
Jan 8, 2009 - version 2.1.3.1
|
514
610
|
|
611
|
+
```
|
515
612
|
* Security fix introduced at 2.1.3.
|
516
613
|
* get_content/post_content of httpclient/2.1.3 may send secure cookies
|
517
614
|
for a https site to non-secure (non-https) site when the https site
|
@@ -521,9 +618,11 @@ Thanks in advance.
|
|
521
618
|
* I realized this bug when I was reading open-uri story on
|
522
619
|
[ruby-core:21205]. Ruby users should use open-uri rather than using
|
523
620
|
net/http directly wherever possible.
|
621
|
+
```
|
524
622
|
|
525
623
|
Dec 29, 2008 - version 2.1.3
|
526
624
|
|
625
|
+
```
|
527
626
|
* Features
|
528
627
|
* Proxy Authentication for SSL.
|
529
628
|
* Performance improvements.
|
@@ -556,9 +655,13 @@ Thanks in advance.
|
|
556
655
|
'204 No Content' for DAV.
|
557
656
|
* Avoid blocking on socket closing when the socket is already closed by
|
558
657
|
foreign host and the client runs under MT-condition.
|
658
|
+
```
|
659
|
+
|
660
|
+
### Changes in 2.1.2
|
559
661
|
|
560
662
|
Sep 22, 2007 - version 2.1.2
|
561
663
|
|
664
|
+
```
|
562
665
|
* HTTP
|
563
666
|
* implemented Negotiate authentication with a support from exterior
|
564
667
|
modules. 'rubyntlm' module is required for Negotiate auth with IIS.
|
@@ -577,9 +680,13 @@ Thanks in advance.
|
|
577
680
|
* [BUG] SSL + debug_dev didn't work under version 2.1.1.
|
578
681
|
* [BUG] Reason-Phrase of HTTP response status line can be empty according
|
579
682
|
* to RFC2616.
|
683
|
+
```
|
684
|
+
|
685
|
+
### Changes in 2.1.1
|
580
686
|
|
581
687
|
Aug 28, 2007 - version 2.1.1
|
582
688
|
|
689
|
+
```
|
583
690
|
* bug fix
|
584
691
|
* domain_match should be case insensitive. thanks to Brian for the patch.
|
585
692
|
* before calling SSLSocket#post_connection_check, check if
|
@@ -590,9 +697,13 @@ Thanks in advance.
|
|
590
697
|
* misc
|
591
698
|
* added HTTPClient#test_loopback_http_response which accepts test
|
592
699
|
loopback response which contains HTTP header.
|
700
|
+
```
|
701
|
+
|
702
|
+
### Changes in 2.1.0
|
593
703
|
|
594
704
|
Jul 14, 2007 - version 2.1.0
|
595
705
|
|
706
|
+
```
|
596
707
|
* program/project renamed from 'http-access2' to 'httpclient'.
|
597
708
|
there's compatibility layer included so existing programs for
|
598
709
|
http-access2 which uses HTTPAccess2::Client should work with
|
@@ -605,17 +716,25 @@ Thanks in advance.
|
|
605
716
|
doesn't load http_proxy/HTTP_PROXY when a library is considered to be
|
606
717
|
running under CGI environment (checked by ENVREQUEST_METHOD existence.
|
607
718
|
cgi_http_proxy/CGI_HTTP_PROXY is loaded instead.
|
719
|
+
```
|
720
|
+
|
721
|
+
### Changes in 2.0.9
|
608
722
|
|
609
723
|
Jul 4, 2007 - version 2.0.9
|
610
724
|
|
725
|
+
```
|
611
726
|
* bug fix
|
612
727
|
* fix the BasicAuth regression problem in 2.0.8. A server may return
|
613
728
|
"BASIC" as an authenticate scheme label instead of "Basic". It must be
|
614
729
|
treated as a case-insensitive token according to RFC2617 section 1.2.
|
615
730
|
Thanks to mwedeme for contributing the patch. (#159)
|
731
|
+
```
|
732
|
+
|
733
|
+
### Changes in 2.0.8
|
616
734
|
|
617
735
|
Jun 30, 2007 - version 2.0.8
|
618
736
|
|
737
|
+
```
|
619
738
|
* HTTP
|
620
739
|
* added request/response filter interface and implemented DigestAuth
|
621
740
|
based on the filter interface. DigestAuth calc engine is based on
|
@@ -635,9 +754,13 @@ Thanks in advance.
|
|
635
754
|
explicitly. Thanks to the anonymous user who reported #154 (#154)
|
636
755
|
* rescue EPIPE for keep-alive reconnecting. Thanks to anonymous user
|
637
756
|
who posted a patch at #124. (#124)
|
757
|
+
```
|
758
|
+
|
759
|
+
### Changes in 2.0.7
|
638
760
|
|
639
761
|
May 13, 2007 - version 2.0.7
|
640
762
|
|
763
|
+
```
|
641
764
|
* HTTP
|
642
765
|
* added proxyauth support. (#6)
|
643
766
|
* let developer allow to rescue a redirect with relative URI. (#28)
|
@@ -668,9 +791,13 @@ Thanks in advance.
|
|
668
791
|
* Connection
|
669
792
|
* fixed a loop condition bug that caused intermittent empty response.
|
670
793
|
(#150, #26, #125)
|
794
|
+
```
|
795
|
+
|
796
|
+
### Changes in 2.0.6
|
671
797
|
|
672
798
|
September 16, 2005 - version 2.0.6
|
673
799
|
|
800
|
+
```
|
674
801
|
* HTTP
|
675
802
|
* allows redirects from a "POST" request. imported a patch from sveit.
|
676
803
|
Thanks! (#7)
|
@@ -709,8 +836,13 @@ Thanks in advance.
|
|
709
836
|
if your ruby is older than 2005-09-06 and you want to use SSL
|
710
837
|
connection, do not set socket_sync = false to avoid a blocking bug of
|
711
838
|
openssl/buffering.rb.
|
839
|
+
```
|
840
|
+
|
841
|
+
### Changes in 2.0.5
|
712
842
|
|
713
843
|
December 24, 2004 - version 2.0.5
|
844
|
+
|
845
|
+
```
|
714
846
|
This is a minor bug fix release.
|
715
847
|
- Connect/Send/Receive timeout cannot be configured. fixed.
|
716
848
|
- IPSocket#addr caused SocketError? on Mac OS X 10.3.6 + ruby-1.8.1 GA.
|
@@ -721,24 +853,44 @@ Thanks in advance.
|
|
721
853
|
HTTP 302: Found and redirects to the page again, causes
|
722
854
|
HTTPAccess2::Client to raise "retry count exceeded". Keat found that the
|
723
855
|
server likes "Host: rubyforge.net" (not with port number).
|
856
|
+
```
|
857
|
+
|
858
|
+
### Changes in 2.0.4
|
724
859
|
|
725
860
|
February 11, 2004 - version 2.0.4
|
861
|
+
|
862
|
+
```
|
726
863
|
- add Client#redirect_uri_callback interface.
|
727
864
|
- refactorings and bug fixes found during negative test.
|
728
865
|
- add SSL test.
|
866
|
+
```
|
867
|
+
|
868
|
+
### Changes in 2.0.3
|
729
869
|
|
730
870
|
December 16, 2003 - version 2.0.3
|
871
|
+
|
872
|
+
```
|
731
873
|
- no_proxy was broken in 2.0.2.
|
732
874
|
- do not dump 'Host' header under protocol_version == 'HTTP/1.0'
|
875
|
+
```
|
876
|
+
|
877
|
+
### Changes in 2.0.2
|
733
878
|
|
734
879
|
December ?, 2003 - version 2.0.2
|
880
|
+
|
881
|
+
```
|
735
882
|
- do not trust HTTP_PROXY environment variable. set proxy server manually.
|
736
883
|
http://ftp.ics.uci.edu/pub/websoft/libwww-perl/archive/2001h1/0072.html
|
737
884
|
http://ftp.ics.uci.edu/pub/websoft/libwww-perl/archive/2001h1/0241.html
|
738
885
|
http://curl.haxx.se/mail/archive-2001-12/0034.html
|
739
886
|
- follow ossl2 change.
|
887
|
+
```
|
888
|
+
|
889
|
+
### Changes in 2.0.1
|
740
890
|
|
741
891
|
October 4, 2003 - version 2.0.1
|
892
|
+
|
893
|
+
```
|
742
894
|
Query was not escaped when query was given as an Array or a Hash. Fixed.
|
743
895
|
Do not use http_proxy defined by ENV['http_proxy'] or ENV['HTTP_PROXY'] if
|
744
896
|
the destination host is 'localhost'.
|
@@ -747,13 +899,22 @@ Thanks in advance.
|
|
747
899
|
No regexp. (give "ruby-lang.org", not "*.ruby-lang.org")
|
748
900
|
If you want specify hot by IP address, give full address.
|
749
901
|
("192.168.1.1, 192.168.1.2")
|
902
|
+
```
|
903
|
+
|
904
|
+
### Changes in 2.0
|
750
905
|
|
751
906
|
September 10, 2003 - version 2.0
|
907
|
+
|
908
|
+
```
|
752
909
|
CamelCase to non_camel_case.
|
753
910
|
SSL support (requires Ruby/OpenSSL).
|
754
911
|
Cookies support. lib/http-access2/cookie.rb is redistributed file which is
|
755
912
|
originally included in Webagent by TAKAHASHI `Maki' Masayoshi. You can
|
756
913
|
download the entire package from http://www.rubycolor.org/arc/.
|
914
|
+
```
|
757
915
|
|
758
916
|
January 11, 2003 - version J
|
917
|
+
|
918
|
+
```
|
759
919
|
ruby/1.8 support.
|
920
|
+
```
|