Oleg Kalnichevski
76989f0ed2
HTTPCLIENT-1075: Decompressing entities (DeflateDecompressingEntity, GzipDecompressingEntity) do not correctly handle content streaming
...
Contributed by James Abley <james.abley at gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1088000 13f79535-47bb-0310-9956-ffa450edef68
2011-04-02 11:34:52 +00:00
Jonathan Moore
e0105ac181
Reduced severity of several logging statements in the caching module so
...
as to reduce verbosity when the recommended DEBUG-level wire logging
settings are on.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1087358 13f79535-47bb-0310-9956-ffa450edef68
2011-03-31 16:16:35 +00:00
Jonathan Moore
2ae703aa85
HTTPCLIENT-1073: In the event a 100 (Continue) response makes its way up
...
to the caching module, but the original request did not expect one, it's
acceptable for the caching module to throw an exception but it had better
consume the body of the 100 (Continue) response before doing so to ensure
proper release of resources. Encountering this would require the underlying
(non-caching) HttpClient to not handle the expect-continue handshake properly
*AND* for the origin server to send a 100-Continue response out of turn
*WITH* a response body. Highly unlikely, but at least this codepath is
covered properly now.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1084655 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 18:00:12 +00:00
Jonathan Moore
2d1711bb83
HTTPCLIENT-1073: receiving a 206 (Partial Content) response to a
...
request that did not request partial content is problematic from
a cache perspective, so throwing a ClientProtocolException is ok.
However, we should properly consume the body of the 206 response
before throwing the exception to ensure that resources are properly
released.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1084649 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 17:25:53 +00:00
Jonathan Moore
962ddfa55a
HTTPCLIENT-1073: caching module should not reject origin
...
401 (Unauthorized) response just because it is missing
a WWW-Authenticate challenge header; the caching module
doesn't care about this and should mind its own business.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1084611 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 15:02:28 +00:00
Jonathan Moore
32221a1a48
HTTPCLIENT-1073: caching module should not reject an origin 405
...
(Method Not Allowed) response just because it is missing an Allow
header, even though this is required by RFC2616; this has no
effect on the caching module itself.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1084610 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 14:59:25 +00:00
Jonathan Moore
e9864b06ff
HTTPCLIENT-1073: if caching module strips off a body for an origin response
...
that should not contain one, it should consume the body off the connection
as well to ensure resources are released.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1084607 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 14:48:24 +00:00
Jonathan Moore
08bbd7bc75
HTTPCLIENT-1073: caching module need not be a stickler about receiving
...
a 407 (Proxy Authentication Required) response without a Proxy-Authenticate
header and should pass it through to local client.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1084590 13f79535-47bb-0310-9956-ffa450edef68
2011-03-23 13:54:11 +00:00
Jonathan Moore
8f73a72a1f
Fix duplicate Warning 110 (stale response) header generated by
...
stale-while-revalidate.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1080575 13f79535-47bb-0310-9956-ffa450edef68
2011-03-11 14:18:28 +00:00
Jonathan Moore
55742a46e1
Minor enhancement to stale-while-revalidate (RFC5861) handling; now we can also
...
serve stale 304s (Not Modified) while asynchronously revalidating. Prior to this,
we were always returning a stale 200 response regardless of whether the incoming
request was conditional or not. The old behavior was not incorrect, but this is
better.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1080422 13f79535-47bb-0310-9956-ffa450edef68
2011-03-11 01:45:13 +00:00
Jonathan Moore
23bc2c7f78
+ Fix minor typos in private function names.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1080419 13f79535-47bb-0310-9956-ffa450edef68
2011-03-11 01:32:46 +00:00
Oleg Kalnichevski
dcfced133b
Upgraded Jetty; minor benchmark improvements
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1080382 13f79535-47bb-0310-9956-ffa450edef68
2011-03-10 22:45:30 +00:00
Oleg Kalnichevski
f3e3302b7e
HttpClient benchmark improvements
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1080204 13f79535-47bb-0310-9956-ffa450edef68
2011-03-10 12:55:42 +00:00
Oleg Kalnichevski
1b1d692a3d
Merged fixes from 4.1.x branches
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1080167 13f79535-47bb-0310-9956-ffa450edef68
2011-03-10 09:42:11 +00:00
Oleg Kalnichevski
490778e271
HTTPCLIENT-1069: HttpHostConnectException not correctly retried for direct and non-tunnelled proxy connections
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.1.x@1080165 13f79535-47bb-0310-9956-ffa450edef68
2011-03-10 09:35:17 +00:00
Oleg Kalnichevski
126f1da349
Use SSL socket factory to create unconnected sockets
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.1.x@1080163 13f79535-47bb-0310-9956-ffa450edef68
2011-03-10 09:24:57 +00:00
Oleg Kalnichevski
a1f6685cd8
HTTPCLIENT-1051: eliminated reverse DNS lookup when performing hostname verification for secure connections
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1079783 13f79535-47bb-0310-9956-ffa450edef68
2011-03-09 13:10:13 +00:00
Oleg Kalnichevski
0bd45f2b39
Changed project version to 4.2-alpha1-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1079543 13f79535-47bb-0310-9956-ffa450edef68
2011-03-08 21:06:55 +00:00
Oleg Kalnichevski
73e6ca8bb8
Removed 4.2 methods
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.1.x@1079534 13f79535-47bb-0310-9956-ffa450edef68
2011-03-08 20:54:13 +00:00
Oleg Kalnichevski
61f45b5c48
HttpClient 4.1.x branch
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.1.x@1079518 13f79535-47bb-0310-9956-ffa450edef68
2011-03-08 20:31:34 +00:00
Oleg Kalnichevski
2de7d4a200
Reverted HTTPCLIENT-1051
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1078847 13f79535-47bb-0310-9956-ffa450edef68
2011-03-07 16:42:29 +00:00
Oleg Kalnichevski
8162b91e3c
HTTPCLIENT-1066: Handling of multiple consecutive slashes in the URI path component
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1078804 13f79535-47bb-0310-9956-ffa450edef68
2011-03-07 15:09:03 +00:00
Oleg Kalnichevski
77ee7287d0
HTTPCLIENT-1051: Default X509 hostname verifier rejects certificates with an IP address as CN
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1078788 13f79535-47bb-0310-9956-ffa450edef68
2011-03-07 14:46:02 +00:00
Oleg Kalnichevski
86369c1696
More test cases for cookie protocol interceptors
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1078784 13f79535-47bb-0310-9956-ffa450edef68
2011-03-07 14:37:45 +00:00
Oleg Kalnichevski
e9f6856f4e
Made behaviour of protocol interceptors more somewhat consistent; added test cases for RequestAddCookies
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1076792 13f79535-47bb-0310-9956-ffa450edef68
2011-03-03 20:59:52 +00:00
Oleg Kalnichevski
41d8c9bdc5
HTTPCLIENT-1065: javadoc fix
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1076561 13f79535-47bb-0310-9956-ffa450edef68
2011-03-03 09:01:14 +00:00
Oleg Kalnichevski
045c740f3a
Code optimization: perform auth cache lookup only if no auth scheme is available in the auth state
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1075780 13f79535-47bb-0310-9956-ffa450edef68
2011-03-01 11:17:48 +00:00
Oleg Kalnichevski
9d55aee86f
Reworked auth caching code; added more test cases for protocol interceptors
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1075508 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 19:57:51 +00:00
Oleg Kalnichevski
a5df9fe83c
Added test cases for RequestProxyAuthentication
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1074528 13f79535-47bb-0310-9956-ffa450edef68
2011-02-25 14:14:43 +00:00
Oleg Kalnichevski
51ef77e7f2
Ahhh, I just can't go back to EasyMock after having used Mockito
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1074493 13f79535-47bb-0310-9956-ffa450edef68
2011-02-25 12:13:16 +00:00
Oleg Kalnichevski
56211032bf
HTTPCLIENT-1063: treat x-gzip as a synonym for gzip
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1074481 13f79535-47bb-0310-9956-ffa450edef68
2011-02-25 11:51:12 +00:00
Oleg Kalnichevski
a572756592
HTTPCLIENT-1061: Proxy-Authorization header gets sent to the target host when tunneling requests through a proxy that requires authentication
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1074473 13f79535-47bb-0310-9956-ffa450edef68
2011-02-25 11:19:23 +00:00
Oleg Kalnichevski
d2670af7dc
HTTPCLIENT-1057: Fixed wrong class name in the HttpClient tutorial
...
Contributed by Neeme Praks <neeme at apache.org>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1070947 13f79535-47bb-0310-9956-ffa450edef68
2011-02-15 15:59:10 +00:00
Oleg Kalnichevski
c3c7ba214d
HTTPCLIENT-1058: SO_TIMEOUT not set early enough for SOCKS proxies
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1070943 13f79535-47bb-0310-9956-ffa450edef68
2011-02-15 15:43:48 +00:00
Sebastian Bazley
a54611e8d6
@import is relative to the current css file
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1070647 13f79535-47bb-0310-9956-ffa450edef68
2011-02-14 20:31:08 +00:00
Sebastian Bazley
0991eb0f07
Remove menu items which are now in the common parent section
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1070169 13f79535-47bb-0310-9956-ffa450edef68
2011-02-13 01:20:10 +00:00
Sebastian Bazley
639891773c
Use relative URLs so works anywhere
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1070168 13f79535-47bb-0310-9956-ffa450edef68
2011-02-13 01:19:35 +00:00
Sebastian Bazley
04d14e5e95
Absolute references are converted incorrectly.
...
Better fix: if banners are inherited from parent POM, then references are calculated OK
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1070077 13f79535-47bb-0310-9956-ffa450edef68
2011-02-12 13:17:47 +00:00
Sebastian Bazley
d5444aad70
Absolute references are converted incorrectly for the HC sub-sub sites
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1070011 13f79535-47bb-0310-9956-ffa450edef68
2011-02-12 02:14:00 +00:00
Sebastian Bazley
35face477b
Ensure the correct clover version is used for reports
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1069061 13f79535-47bb-0310-9956-ffa450edef68
2011-02-09 19:50:53 +00:00
Oleg Kalnichevski
f4ef817d25
HTTPCLIENT-1056: Fixed bug causing the RequestAuthCache protocol interceptor to generate an invalid AuthScope instance when looking up user credentials for preemptive authentication
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1068881 13f79535-47bb-0310-9956-ffa450edef68
2011-02-09 13:42:33 +00:00
Oleg Kalnichevski
7302f4b7a3
HTTPCLIENT-1044: HttpRequestRetryHandler implementation compliant with the definition of idempotent methods given in the RFC 2616
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1068579 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 21:05:02 +00:00
Oleg Kalnichevski
4e64d3961a
HTTPCLIENT-1053: Fixed the way DigestScheme generates nonce-count values
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1068546 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 20:08:00 +00:00
Sebastian Bazley
cae0917efd
Javadoc is very noisy - quieten it
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1067841 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 02:00:12 +00:00
Asankha Chamath Perera
bbe6525b02
update doap file
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1067703 13f79535-47bb-0310-9956-ffa450edef68
2011-02-06 17:03:25 +00:00
Oleg Kalnichevski
630ee5faad
Upgraded project version to 4.1.1-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1061714 13f79535-47bb-0310-9956-ffa450edef68
2011-01-21 10:03:26 +00:00
Oleg Kalnichevski
119d9cbb2c
Use redirect from a generic to a version specific URL
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1060101 13f79535-47bb-0310-9956-ffa450edef68
2011-01-17 21:27:57 +00:00
Oleg Kalnichevski
6ba7afe88a
Fixed broken test case
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1059273 13f79535-47bb-0310-9956-ffa450edef68
2011-01-15 08:24:18 +00:00
Oleg Kalnichevski
a877471bb9
Simulate connect failure
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1059107 13f79535-47bb-0310-9956-ffa450edef68
2011-01-14 18:55:36 +00:00
Jonathan Moore
8e914ae112
Add missing Apache License header.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1059097 13f79535-47bb-0310-9956-ffa450edef68
2011-01-14 18:25:06 +00:00