Oleg Kalnichevski
97557998d5
HTTPCLIENT-1072: inline nested jars in OSGi bundles
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1140281 13f79535-47bb-0310-9956-ffa450edef68
2011-06-27 19:18:54 +00:00
Oleg Kalnichevski
494ba13c3e
HTTPCLIENT-1094: digest auth scheme refactoring
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1138790 13f79535-47bb-0310-9956-ffa450edef68
2011-06-23 09:31:31 +00:00
Oleg Kalnichevski
21e31ba027
HTTPCLIENT-1086: additional constructors for UrlEncodedFormEntity that take iterable as input
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1136437 13f79535-47bb-0310-9956-ffa450edef68
2011-06-16 13:50:02 +00:00
Jonathan Moore
2d017dcc0e
HTTPCLIENT-1100: Missing Content-Length header makes cached entry invalid.
...
Applying patch provided by Bart Robeyns <bart dot robeyns at gmail dot com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1133907 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 15:01:42 +00:00
Jonathan Moore
8dbbed80cc
Reverting changeset r1133877 (duplicate addition of spymemcached repository).
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1133902 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 14:52:41 +00:00
Jonathan Moore
ae7c42fc95
+ Noticed that the memcached dependency needed for the caching module
...
is not provided by Maven Central, so we couldn't build the project
if the memcached jar wasn't already in the local repository. I added
a <repository> for the pom for httpclient-cache, since that's the
only module that needs it, but if we'd prefer to put that in the
parent pom I can certainly move it there too (not sure what the
prevailing opinion is on this).
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1133877 13f79535-47bb-0310-9956-ffa450edef68
2011-06-09 14:01:41 +00:00
Oleg Kalnichevski
92d66f3355
HTTPCLIENT-1098: Avoid expensive reverse DNS lookup on connect timeout excpetion
...
Contributed by Thomas Boettcher <tboett at gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1132902 13f79535-47bb-0310-9956-ffa450edef68
2011-06-07 08:25:24 +00:00
Sebastian Bazley
a41eccec14
HTTPCLIENT-1097 BrowserCompatHostnameVerifier and StrictHostnameVerifier should handle wildcards in SSL certificates better.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1130531 13f79535-47bb-0310-9956-ffa450edef68
2011-06-02 13:08:15 +00:00
Oleg Kalnichevski
4acba49325
Fixed the test breakage on Linux where the local host name is returned as 'localhost.localdomain'
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1128917 13f79535-47bb-0310-9956-ffa450edef68
2011-05-29 17:58:42 +00:00
Sebastian Bazley
e30d68d9f0
Another test
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1128649 13f79535-47bb-0310-9956-ffa450edef68
2011-05-28 14:01:42 +00:00
Sebastian Bazley
10ca47490e
HTTPCLIENT-1097 Add a test to check status quo for 2TLD matching
...
Also add disabled test for wildcard 2TKD matching
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1128647 13f79535-47bb-0310-9956-ffa450edef68
2011-05-28 13:49:38 +00:00
Sebastian Bazley
2a08b55242
HTTPCLIENT-1097 Add a test to check status quo
...
Also add disabled test for wildcard matching
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1128637 13f79535-47bb-0310-9956-ffa450edef68
2011-05-28 13:14:22 +00:00
Sebastian Bazley
cf5eb5dea5
Spelling
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1128432 13f79535-47bb-0310-9956-ffa450edef68
2011-05-27 19:29:53 +00:00
Sebastian Bazley
180ec543f0
Add Cookie ordering test
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1128428 13f79535-47bb-0310-9956-ffa450edef68
2011-05-27 19:16:55 +00:00
Sebastian Bazley
39ad9e032d
Tidy up ignore cookie references
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1128346 13f79535-47bb-0310-9956-ffa450edef68
2011-05-27 15:05:16 +00:00
Sebastian Bazley
da05e5c6d4
Add reference to Ignore CookieSpec
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1128338 13f79535-47bb-0310-9956-ffa450edef68
2011-05-27 14:54:28 +00:00
Sebastian Bazley
0e2b207489
HTTPCLIENT-1092 If ClientPNames.VIRTUAL_HOST does not provide the port, derive it from the current request.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1125566 13f79535-47bb-0310-9956-ffa450edef68
2011-05-20 20:51:24 +00:00
Oleg Kalnichevski
f3e7802196
Updated dependency declarations; upgraded HttpCore to 4.1.1; upgraded Memcached to version 2.6
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1124274 13f79535-47bb-0310-9956-ffa450edef68
2011-05-18 14:08:24 +00:00
Sebastian Bazley
52478759a5
Minor grammatical change
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1104397 13f79535-47bb-0310-9956-ffa450edef68
2011-05-17 16:48:09 +00:00
Oleg Kalnichevski
e2fa3ae38f
HTTPCLIENT-1087: NTLM proxy authentication fails on retry if the underlying connection is closed as a result of a target authentication failure
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1104207 13f79535-47bb-0310-9956-ffa450edef68
2011-05-17 12:54:14 +00:00
Oleg Kalnichevski
195026ce43
Lax implementation of RedirectStrategy contributed by Bartosz Firyn <songo.bercik at interia.pl>
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1104115 13f79535-47bb-0310-9956-ffa450edef68
2011-05-17 10:32:08 +00:00
Oleg Kalnichevski
0999878b31
Bogus redirects should result in an HttpException instead of IllegalStateException
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1100531 13f79535-47bb-0310-9956-ffa450edef68
2011-05-07 13:42:15 +00:00
Sebastian Bazley
0bae59de4f
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1099906 13f79535-47bb-0310-9956-ffa450edef68
2011-05-05 18:25:31 +00:00
Sebastian Bazley
70d37431ec
Suppress NPE warning
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1099905 13f79535-47bb-0310-9956-ffa450edef68
2011-05-05 18:19:45 +00:00
Oleg Kalnichevski
471c2b3ae9
Deprecated ConnConnectionPNames.MAX_STATUS_LINE_GARBAGE
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1098106 13f79535-47bb-0310-9956-ffa450edef68
2011-04-30 12:42:44 +00:00
Oleg Kalnichevski
4998e3562d
Re-introduced timeout parameter for connection manager operations
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1098098 13f79535-47bb-0310-9956-ffa450edef68
2011-04-30 11:11:51 +00:00
Oleg Kalnichevski
e0d8ec5d34
Updated test keystore
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1096480 13f79535-47bb-0310-9956-ffa450edef68
2011-04-25 13:48:25 +00:00
Oleg Kalnichevski
f8bc43e3f0
Updated NTLM guide based in input provided by Ron Jacobs <Ron.Jacobs at Reardencommerce.com>
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1095921 13f79535-47bb-0310-9956-ffa450edef68
2011-04-22 11:26:49 +00:00
Oleg Kalnichevski
bc70b1839a
HTTPCLIENT-1079: Fixed Kerberos cross-realm support
...
Contributed by Michael Osipov <1983-01-06 at gmx.net>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1091904 13f79535-47bb-0310-9956-ffa450edef68
2011-04-13 20:27:27 +00:00
Oleg Kalnichevski
281d9d5f4d
HTTPCLIENT-1078: Decompressing entities (DeflateDecompressingEntity, GzipDecompressingEntity) do not close content stream in #writeTo() method
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1091140 13f79535-47bb-0310-9956-ffa450edef68
2011-04-11 17:38:37 +00:00
Sebastian Bazley
584bc97d49
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1090038 13f79535-47bb-0310-9956-ffa450edef68
2011-04-07 21:57:30 +00:00
Sebastian Bazley
24ed3badd8
Rework description to use brand as an adjective
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1088009 13f79535-47bb-0310-9956-ffa450edef68
2011-04-02 11:57:31 +00:00
Sebastian Bazley
8f07499411
Trivial readability fix
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1088007 13f79535-47bb-0310-9956-ffa450edef68
2011-04-02 11:49:32 +00:00
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