Oleg Kalnichevski
fb4bbe08d1
Updated javadocs
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1166554 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 07:56:00 +00:00
Oleg Kalnichevski
7009ad7d0f
Simplified InMemoryDnsResolver#add method
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1166362 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 20:04:38 +00:00
Oleg Kalnichevski
57ea057594
HTTPCLIENT-1123: Support for pluggable DNS resolvers (default resolver).
...
Contributed by Alin Vasile <alinachegalati at yahoo dot com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1165863 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 21:27:48 +00:00
Oleg Kalnichevski
d65b529e08
Fixed broken test case
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1165646 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 12:49:00 +00:00
Oleg Kalnichevski
ce13e3606f
HTTPCLIENT-1123: Support for pluggable DNS resolvers.
...
Contributed by Alin Vasile <alinachegalati at yahoo dot com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1165635 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 12:20:26 +00:00
Sebastian Bazley
5d554ccf26
HTTPCLIENT-1120 - DefaultHttpRequestRetryHandler#retryRequest should not retry aborted requests
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1164052 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 12:45:02 +00:00
Sebastian Bazley
df91357884
Javadoc syntax
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1163467 13f79535-47bb-0310-9956-ffa450edef68
2011-08-31 01:26:50 +00:00
Oleg Kalnichevski
102ed1e844
Redesigned connection management code based on HttpCore 4.2 API (merged from conn-mgmt-redesign branch)
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1160635 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 11:32:53 +00:00
Oleg Kalnichevski
257ea4c9ad
HTTPCLIENT-1076: fluent facade API for HttpClient developed by Xu Lilu for the Google summer of code 2011: exception handling improvements; some test coverage
...
Contributed by Xu Lilu <cookieme at gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1160386 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 19:29:33 +00:00
Oleg Kalnichevski
1b08395e72
Support for auth-int qop (quality of protection) option in Digest auth scheme
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1158320 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 15:13:36 +00:00
Oleg Kalnichevski
be07d74d16
Simplified ServiceUnavailableRetryStrategy interface; made DefaultServiceUnavailableRetryStrategy immutable; updated javadocs
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1158314 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 15:09:34 +00:00
Oleg Kalnichevski
4bb50b352c
Tweaked HttpInetSocketAddress class; updated javadocs
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1158312 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 15:00:08 +00:00
Oleg Kalnichevski
5227866cd9
Minor tweaks to UriBuilder
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1157360 13f79535-47bb-0310-9956-ffa450edef68
2011-08-13 09:32:41 +00:00
Oleg Kalnichevski
da5aebe735
HTTPCLIENT-1076: initial check-in of the fluent facade API for HttpClient developed by Xu Lilu for the Google summer of code 2011
...
Contributed by Xu Lilu <cookieme at gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1157347 13f79535-47bb-0310-9956-ffa450edef68
2011-08-13 08:31:50 +00:00
Oleg Kalnichevski
46f309f7c9
Improved #detach method implementation
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/conn-mgmt-redesign@1156522 13f79535-47bb-0310-9956-ffa450edef68
2011-08-11 07:46:35 +00:00
Oleg Kalnichevski
bf13db8115
Eliminated synchronization overhead introduced by the connection backoff code
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1156175 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 13:34:06 +00:00
Oleg Kalnichevski
444c6bf0e8
TABS -> SPACES
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1156167 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 13:15:20 +00:00
Oleg Kalnichevski
ec85b40b80
Added a micro benchmark comparing performance of old and new blocking connection pools
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/conn-mgmt-redesign@1156162 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 13:03:33 +00:00
Oleg Kalnichevski
0195cb4007
Simplified synchronization code in ManagedClientConnectionImpl
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/conn-mgmt-redesign@1156161 13f79535-47bb-0310-9956-ffa450edef68
2011-08-10 13:00:41 +00:00
Oleg Kalnichevski
6be907264f
Moved pool entry ID generation logic from abstract pool classes to specific implementations
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/conn-mgmt-redesign@1155307 13f79535-47bb-0310-9956-ffa450edef68
2011-08-09 11:08:59 +00:00
Oleg Kalnichevski
eb920ec3cc
Redesign of connection management classes based on new pooling components from HttpCore
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/conn-mgmt-redesign@1154916 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 10:59:55 +00:00
Oleg Kalnichevski
9b97410b84
Redesign of connection management classes based on new pooling components from HttpCore
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/conn-mgmt-redesign@1154914 13f79535-47bb-0310-9956-ffa450edef68
2011-08-08 10:51:10 +00:00
Oleg Kalnichevski
030b8d3773
Increased sleep time in some test cases currently failing when executed on Windows
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1153911 13f79535-47bb-0310-9956-ffa450edef68
2011-08-04 15:39:23 +00:00
Oleg Kalnichevski
f944e26075
Removed trailing whitespaces
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1153910 13f79535-47bb-0310-9956-ffa450edef68
2011-08-04 15:30:29 +00:00
Oleg Kalnichevski
a220960fee
HTTPCLIENT-1051: paranoia is fun
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1152363 13f79535-47bb-0310-9956-ffa450edef68
2011-07-29 20:12:30 +00:00
Oleg Kalnichevski
f7b59d7f6c
HTTPCLIENT-1111: Added #prepareSocket method to SSLSocketFactory
...
Contributed by Pasi Eronen <pe at iki.fi>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1151869 13f79535-47bb-0310-9956-ffa450edef68
2011-07-28 14:27:45 +00:00
Jonathan Moore
3d933f9582
HTTPCLIENT-1108: increase timing intervals on thread-related tests to reduce
...
chances of race conditions.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1151554 13f79535-47bb-0310-9956-ffa450edef68
2011-07-27 17:42:54 +00:00
Jonathan Moore
8e3a323a32
HTTPCLIENT-1108: much better unit test coverage of ConnPoolByRoute
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1151465 13f79535-47bb-0310-9956-ffa450edef68
2011-07-27 13:54:49 +00:00
Jonathan Moore
6d517fc723
HTTPCLIENT-1108: connection should get closed if checked back in as non-reusable.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1148901 13f79535-47bb-0310-9956-ffa450edef68
2011-07-20 19:03:27 +00:00
Jonathan Moore
39a4f616aa
HTTPCLIENT-1108: backing out my earlier commit of the FIFO structure, to restore
...
prior functionality. I realized I didn't do this at the right level; we want to
do FIFO at the per-route connection pool level but do LIFO at the "all connections"
level. Will keep working forward on this.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1148769 13f79535-47bb-0310-9956-ffa450edef68
2011-07-20 13:45:18 +00:00
Jonathan Moore
dd90fe4685
HTTPCLIENT-1108: Adding Mockito unit tests for ConnPoolByRoute. The unit test
...
down at the bottom is currently @Ignored but is the question I had on the dev
list just now--is this test correct in its assertions?
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1148420 13f79535-47bb-0310-9956-ffa450edef68
2011-07-19 16:02:45 +00:00
Jonathan Moore
cbfca24df8
HTTPCLIENT-1101: added ASF header to recently-added files.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1147962 13f79535-47bb-0310-9956-ffa450edef68
2011-07-18 16:36:25 +00:00
Jonathan Moore
ff78877ef6
Disable logging output by default during unit tests.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1147959 13f79535-47bb-0310-9956-ffa450edef68
2011-07-18 16:33:10 +00:00
Jonathan Moore
3cfa76291c
HTTPCLIENT-1101: make Clock and SystemClock package-private, since they
...
are only used to expose hooks for unit testing time-related behaviors,
and we don't want them as part of the public API. Also expanded the
Javadoc for the AIMDBackoffManager.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1147958 13f79535-47bb-0310-9956-ffa450edef68
2011-07-18 16:31:28 +00:00
Jonathan Moore
dfea0c207f
HTTPCLIENT-1101: adaptive connection pool sizing. This implements an
...
additive increase / multiplicative decrease (AIMD) strategy for
on-the-fly connection pool sizing. No default behavior is changed
at the moment (you have to opt into this algorithm). Still needs
documentation.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1147947 13f79535-47bb-0310-9956-ffa450edef68
2011-07-18 16:13:44 +00:00
Jonathan Moore
8600a7e959
HTTPCLIENT-1108: reuse of persistent connections now uses a stack (LIFO)
...
instead of a queue (FIFO), so that unneeded connections will eventually
become idle and reclaimable by closeIdleConnections().
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1147280 13f79535-47bb-0310-9956-ffa450edef68
2011-07-15 18:59:51 +00:00
Oleg Kalnichevski
d5b66aa9d8
Added #reset() and #releaseConnection() methods to HttpRequestBase
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1145177 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 13:58:24 +00:00
Oleg Kalnichevski
a03573ca24
HTTPCLIENT-1105: Built-in way to do auto-retry for certain status codes
...
Contributed by Dan Checkoway <dcheckoway at gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1141078 13f79535-47bb-0310-9956-ffa450edef68
2011-06-29 12:56:38 +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
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
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
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
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
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
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
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
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
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
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
Oleg Kalnichevski
7fc0e265ef
Changed project version to 4.1-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1058974 13f79535-47bb-0310-9956-ffa450edef68
2011-01-14 12:03:47 +00:00
Oleg Kalnichevski
3a0f3c34c4
Updated for HttpClient 4.1 release
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1058964 13f79535-47bb-0310-9956-ffa450edef68
2011-01-14 11:50:12 +00:00
Oleg Kalnichevski
2eb2eda4bb
Changed Browser-Compatibility and Best-Match cookie policies to emulate the behaviour of FireFox more closely when parsing Netscape style cookies. Comma will no longer be treated as a header element separator if Set-Cookie does not contain a Version attribute mandated by the RFC2109 / RFC 2965 cookie specifications
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1057148 13f79535-47bb-0310-9956-ffa450edef68
2011-01-10 10:57:29 +00:00
Sebastian Bazley
7ee591f0f4
Merge jar manifest entries into httpclient parent pom
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1056561 13f79535-47bb-0310-9956-ffa450edef68
2011-01-07 23:43:27 +00:00
Oleg Kalnichevski
4f23a5086e
Move default implementations of the majority of abstract classes from DefaultHttpClient to AbstractHttpClient
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1056277 13f79535-47bb-0310-9956-ffa450edef68
2011-01-07 11:56:21 +00:00
Sebastian Bazley
992078af1c
Remove unnecessary store
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1055715 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 02:33:22 +00:00
Oleg Kalnichevski
a703914575
HTTPCLIENT-1026: shut down connection manager in a try-finally
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1055629 13f79535-47bb-0310-9956-ffa450edef68
2011-01-05 20:39:15 +00:00
Oleg Kalnichevski
441006d804
Use special HttpRoutedConnection interafce to access route details in the protocol level classes, as ManagedClientConnection interface is blocking I/O model specific
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1055464 13f79535-47bb-0310-9956-ffa450edef68
2011-01-05 14:16:08 +00:00
Oleg Kalnichevski
e95f6ce960
Always use remote port of the underyling connection as default when creating CookieOrigin instance
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1055406 13f79535-47bb-0310-9956-ffa450edef68
2011-01-05 10:54:20 +00:00
Oleg Kalnichevski
232ee999c8
Corrected debug logs: report zero keep-alive duration as indefinite; use better terminology ('indefinitely' instead of 'for ever')
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1054960 13f79535-47bb-0310-9956-ffa450edef68
2011-01-04 10:26:15 +00:00
Oleg Kalnichevski
dafdf43025
Fixed misspelled method name
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1053832 13f79535-47bb-0310-9956-ffa450edef68
2010-12-30 09:10:00 +00:00
Oleg Kalnichevski
261fb7d7db
Moved target host extraction code to a re-usable static method in the URIUtils class
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1053679 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 17:35:36 +00:00
Oleg Kalnichevski
21aae1dfe2
Removed calls to deprecated methods
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1053675 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 17:05:04 +00:00
Oleg Kalnichevski
eda06a75ee
Removed static socket factories; adjusted Scheme#hashCode and Scheme#equals
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1053589 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 09:54:02 +00:00
Oleg Kalnichevski
18de7cda9c
Support for default scheme initialization; no args constructor for pooling connection and single connection managers
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1053367 13f79535-47bb-0310-9956-ffa450edef68
2010-12-28 15:18:26 +00:00
Jonathan Moore
b9851bc11c
Changed bad host for retry handler tests to bogus.example.com
...
from www.complete.garbage.invalid, which seems to have better
timing properties for me (and hopefully Hudson).
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1053062 13f79535-47bb-0310-9956-ffa450edef68
2010-12-27 13:07:53 +00:00
Oleg Kalnichevski
eb0eab0a86
Code clean-ups
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1050152 13f79535-47bb-0310-9956-ffa450edef68
2010-12-16 20:42:22 +00:00
Sebastian Bazley
d1e2ee3c82
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1049721 13f79535-47bb-0310-9956-ffa450edef68
2010-12-15 21:42:33 +00:00
Sebastian Bazley
022c25070e
Javadoc - explain deprecation
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1048912 13f79535-47bb-0310-9956-ffa450edef68
2010-12-14 02:14:11 +00:00
Sebastian Bazley
ef1e4d0890
HTTPCLIENT-911 Support underscore in domain name, or provide better exception
...
If getHost() returns null, extract host:port from getAuthority()
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1048881 13f79535-47bb-0310-9956-ffa450edef68
2010-12-14 00:53:54 +00:00
Sebastian Bazley
0b5e40c11d
Revert accidental changes made in r980937
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1045364 13f79535-47bb-0310-9956-ffa450edef68
2010-12-13 20:33:05 +00:00
Sebastian Bazley
a11743431b
Fix up clirr version comparison so defaults to 4.0, except cache=4.1-alpha2
...
Can also override individually using -DcomparisonVersion and -Dcache.comparisonVersion
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1045260 13f79535-47bb-0310-9956-ffa450edef68
2010-12-13 17:53:59 +00:00
Sebastian Bazley
3fc9bd963c
Extract setup of default HttpParams into public static method
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1045232 13f79535-47bb-0310-9956-ffa450edef68
2010-12-13 16:59:32 +00:00
Sebastian Bazley
967b8af955
Document initial parameter settings
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1045074 13f79535-47bb-0310-9956-ffa450edef68
2010-12-13 11:35:35 +00:00
Sebastian Bazley
f5a01c6cb2
No point checking for null, as instanceof else clause handles it
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1044527 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 22:51:44 +00:00
Sebastian Bazley
74581924cc
Improve equals performance: no need to check for null; perform cheapest checks first.
...
Use short-cut evaluation
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1044525 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 22:41:07 +00:00
Sebastian Bazley
19022393be
Add some more tests for equals
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1044524 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 22:38:10 +00:00
Oleg Kalnichevski
50906f44e3
Made #equals and #hashCode of HttpRoute consistent with implementations in other classes
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1044411 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 15:55:41 +00:00
Sebastian Bazley
9a4d4f8bdd
[HTTPCLIENT-1030] HttpRoute.equals(Object o) is quite inefficient, as it does not take full advantage of shortcut logic
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1044366 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 14:15:54 +00:00
Sebastian Bazley
4580b4f733
Typo: credenticals => credentials
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1043920 13f79535-47bb-0310-9956-ffa450edef68
2010-12-09 12:02:43 +00:00
Sebastian Bazley
9475e26293
HTTPCLIENT-1031 Cannot clone BasicClientCookie2 without specified ports
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1043664 13f79535-47bb-0310-9956-ffa450edef68
2010-12-08 20:37:53 +00:00
Sebastian Bazley
6e306aa4fd
Stuff on Execution Context does not really belong here
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1043661 13f79535-47bb-0310-9956-ffa450edef68
2010-12-08 20:27:55 +00:00
Sebastian Bazley
40ef33ce81
Clarify that getURI() may return a relative URI
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1043510 13f79535-47bb-0310-9956-ffa450edef68
2010-12-08 16:43:29 +00:00
Sebastian Bazley
d1f6c23e10
HTTPCLIENT-1030) Implement "ignoreCookies" CookieSpec
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1042225 13f79535-47bb-0310-9956-ffa450edef68
2010-12-04 19:01:02 +00:00
Oleg Kalnichevski
e6af69f2e4
Never ever discard Errors by catching and ignoring Throwable
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1042217 13f79535-47bb-0310-9956-ffa450edef68
2010-12-04 17:58:08 +00:00
Sebastian Bazley
23948c02cd
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1042005 13f79535-47bb-0310-9956-ffa450edef68
2010-12-03 21:14:23 +00:00
Oleg Kalnichevski
317cddd89a
Upgraded project version to 4.1-beta2-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1037288 13f79535-47bb-0310-9956-ffa450edef68
2010-11-20 18:17:57 +00:00
Oleg Kalnichevski
023363e3ff
Made PlainSocketFactory non-final; improved SSLSocketFactory#connectSocket() to accept plain sockets as input
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1036123 13f79535-47bb-0310-9956-ffa450edef68
2010-11-17 17:22:28 +00:00
Oleg Kalnichevski
b5340858b8
Fixed project site urls
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1036113 13f79535-47bb-0310-9956-ffa450edef68
2010-11-17 17:08:23 +00:00
Oleg Kalnichevski
9e54454530
Generate LICENSE and NOTICE resources automatically using maven plugin; fixed javadoc links to external resources
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1031582 13f79535-47bb-0310-9956-ffa450edef68
2010-11-05 14:28:48 +00:00
Oleg Kalnichevski
31590950b5
Javadoc fixes
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1030510 13f79535-47bb-0310-9956-ffa450edef68
2010-11-03 16:04:47 +00:00
Oleg Kalnichevski
c76574f947
Dedicated branch for testing maven-notice-plugin
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/notice-plugin-test@1026503 13f79535-47bb-0310-9956-ffa450edef68
2010-10-22 21:47:45 +00:00
Oleg Kalnichevski
6d67c55306
TABS -> SPACES
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1026121 13f79535-47bb-0310-9956-ffa450edef68
2010-10-21 19:59:18 +00:00
Oleg Kalnichevski
e8bb17f4e2
Fixed examples
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1026120 13f79535-47bb-0310-9956-ffa450edef68
2010-10-21 19:57:32 +00:00
Sebastian Bazley
e4d6204517
@Overrides
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1023981 13f79535-47bb-0310-9956-ffa450edef68
2010-10-18 20:16:06 +00:00
Sebastian Bazley
15c154c8ac
Simplify and eliminate boxing warnings
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1023978 13f79535-47bb-0310-9956-ffa450edef68
2010-10-18 20:13:01 +00:00
Sebastian Bazley
fa172d971d
Make private immutable variable final
...
Missing @Override markers
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1023974 13f79535-47bb-0310-9956-ffa450edef68
2010-10-18 20:09:39 +00:00
Oleg Kalnichevski
29f896a0a3
HTTPCLIENT-919: Support for NTLMv1, NTLMv2, and NTLM2 Session authentication.
...
Contributed by Karl Wright <karl.wright at nokia.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1023959 13f79535-47bb-0310-9956-ffa450edef68
2010-10-18 19:20:08 +00:00
Oleg Kalnichevski
e5596fb025
HTTPCLIENT-1002: Stale connection check fails if wire logging is on
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1002956 13f79535-47bb-0310-9956-ffa450edef68
2010-09-30 07:35:30 +00:00
Oleg Kalnichevski
a2deba9de5
TABS -> SPACES
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1001145 13f79535-47bb-0310-9956-ffa450edef68
2010-09-25 06:46:36 +00:00
Oleg Kalnichevski
1e70d5a39e
HTTPCLIENT-1000: Maximum connection lifetimes settings for ThreadSafeClientConnManager.
...
Contributed by Michajlo Matijkiw <michajlo_matijkiw at comcast.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1001144 13f79535-47bb-0310-9956-ffa450edef68
2010-09-25 06:35:07 +00:00
Sebastian Bazley
86c464d15e
Add missing @Deprecated annotations
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1000096 13f79535-47bb-0310-9956-ffa450edef68
2010-09-22 17:19:31 +00:00
Oleg Kalnichevski
af025e3483
Removed unused import
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@995237 13f79535-47bb-0310-9956-ffa450edef68
2010-09-08 20:15:04 +00:00
Oleg Kalnichevski
5c2dacac18
HTTPCLIENT-989: DefaultHttpRequestRetryHandler no longer retries non-idempotent http methods if NoHttpResponseException is thrown
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@995236 13f79535-47bb-0310-9956-ffa450edef68
2010-09-08 20:07:31 +00:00
Oleg Kalnichevski
ebb54d79b9
Added NOTICE and LICENSE resources to test and osgi jars
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@992065 13f79535-47bb-0310-9956-ffa450edef68
2010-09-02 19:14:13 +00:00
Oleg Kalnichevski
30abf15ba6
Upgraded HttpCore to version 4.1-beta2; updated HttpClient tutorial
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@990924 13f79535-47bb-0310-9956-ffa450edef68
2010-08-30 20:01:46 +00:00
Oleg Kalnichevski
30eb471da7
Catch and log I/O exceptions thrown by #close() and #shutdown() methods
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@989328 13f79535-47bb-0310-9956-ffa450edef68
2010-08-25 19:57:51 +00:00
Oleg Kalnichevski
143f3b0a0c
HTTPCLIENT-974: RequestWrapper does not use the headers of the request it wraps
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@982361 13f79535-47bb-0310-9956-ffa450edef68
2010-08-04 18:56:39 +00:00
Oleg Kalnichevski
e0d37d5502
Refactored HttpCacheEntry; new API should allow for cache entries backed by a temporary file
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@980937 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 20:15:39 +00:00
Oleg Kalnichevski
c2622c8ca2
HTTPCLIENT-969: BasicCookieStore#getCookies() to return a copy of Cookie list
...
Contributed by David Smiley <dsmiley at mitre.org>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@967227 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 19:45:47 +00:00
Oleg Kalnichevski
8cf6a94f60
Fixed request exec count
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@965986 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 20:21:41 +00:00
Oleg Kalnichevski
ee323a52fa
Deprecated ConnManagerPNames and related classes; 'http.conn-manager.timeout' parameter deprecated in favor of 'http.connection.timeout'; improved javadocs for deprecated classes; renamed methods in ThreadSafeClientConnManager for better consistency
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@965983 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 20:14:09 +00:00
Oleg Kalnichevski
c80f04cb45
HTTPCLIENT-951: Non-repeatable entity enclosing requests are not correctly retried when 'expect-continue' handshake is active
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@956989 13f79535-47bb-0310-9956-ffa450edef68
2010-06-22 19:28:48 +00:00
Oleg Kalnichevski
12e382daf9
Revert change committed by mistake
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@954914 13f79535-47bb-0310-9956-ffa450edef68
2010-06-15 14:40:31 +00:00
Oleg Kalnichevski
4b73b9c74e
HTTPCLIENT-948: Completed refactoring of the idle connection handling code; cleaned up logging in connection management code
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@954903 13f79535-47bb-0310-9956-ffa450edef68
2010-06-15 14:15:34 +00:00
Sebastian Bazley
25071e091c
Disambiguate local links so they work with the Doxia 1.1 (which is current for Maven 2.1.0)
...
(whilst still remaining compatible with the previous Doxia release)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@954679 13f79535-47bb-0310-9956-ffa450edef68
2010-06-15 00:15:49 +00:00
Oleg Kalnichevski
a2ad042193
HTTPCLIENT-948: redesign of idle connection handling
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@954659 13f79535-47bb-0310-9956-ffa450edef68
2010-06-14 22:00:56 +00:00
Oleg Kalnichevski
0f8ca31e92
HTTPCLIENT-944: maintain separate count of connect attempts
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@954282 13f79535-47bb-0310-9956-ffa450edef68
2010-06-13 18:37:25 +00:00
Oleg Kalnichevski
0bb63c609a
HTTPCLIENT-953: IllegalStateException thrown by RouteSpecificPool
...
Contributed by Guillaume <gueugaie at gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@954258 13f79535-47bb-0310-9956-ffa450edef68
2010-06-13 16:40:04 +00:00
Oleg Kalnichevski
5f8e3d49de
Changed comments
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@954257 13f79535-47bb-0310-9956-ffa450edef68
2010-06-13 16:39:31 +00:00
Oleg Kalnichevski
3be7e6ab91
HTTPCLIENT-942: tweaked example
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@953985 13f79535-47bb-0310-9956-ffa450edef68
2010-06-12 10:39:36 +00:00
Oleg Kalnichevski
555237285c
HTTPCLIENT-951: Test cases
...
Contributed by Thierry Guérin <thi.guerin at laposte.net>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@953890 13f79535-47bb-0310-9956-ffa450edef68
2010-06-11 22:10:52 +00:00
Oleg Kalnichevski
ade1571f00
HTTPCLIENT-952: Trust store parameter is ingored by SSLSocketFactory
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@953160 13f79535-47bb-0310-9956-ffa450edef68
2010-06-09 20:59:41 +00:00
Oleg Kalnichevski
c4c6cfc413
HTTPCLIENT-948: works around the race condition described in HTTPCLIENT-948
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@950717 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 18:52:05 +00:00
Oleg Kalnichevski
60aead5273
TABS -> SPACES
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@947512 13f79535-47bb-0310-9956-ffa450edef68
2010-05-23 22:22:00 +00:00
Oleg Kalnichevski
5edc70cd28
HTTPCLIENT-941: Patch changing Mockito to EasyMock
...
Contributed by Joe Campbell <joseph.r.campbell at gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@947510 13f79535-47bb-0310-9956-ffa450edef68
2010-05-23 22:20:44 +00:00
Oleg Kalnichevski
e47331c369
Upgraded project version to 4.1-alpha3-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@945301 13f79535-47bb-0310-9956-ffa450edef68
2010-05-17 18:46:19 +00:00
Oleg Kalnichevski
ca86507442
Updated POMs for the 4.1-alpha2 release
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943642 13f79535-47bb-0310-9956-ffa450edef68
2010-05-12 19:23:18 +00:00
Sebastian Bazley
87273f1751
Make new immutable private fields final
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943635 13f79535-47bb-0310-9956-ffa450edef68
2010-05-12 18:55:24 +00:00
Oleg Kalnichevski
13f31eb2db
HTTPCLIENT-936: Fixed bug causing NPE or an infinite loop in the authentication code in case of a SPNEGO authentication failure
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943620 13f79535-47bb-0310-9956-ffa450edef68
2010-05-12 18:33:17 +00:00
Oleg Kalnichevski
bb0ecdbcb4
HTTPCLIENT-940: deprecated methods dependent on the default charset
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943614 13f79535-47bb-0310-9956-ffa450edef68
2010-05-12 18:20:11 +00:00
Oleg Kalnichevski
c7f3b744e6
HTTPCLIENT-936: Test cases
...
Contributed by Francois Rigault <francois dot rigault.amadeus.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943284 13f79535-47bb-0310-9956-ffa450edef68
2010-05-11 20:36:26 +00:00
Sebastian Bazley
615001b2ea
No need to expose mutable arrays outside the class
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943278 13f79535-47bb-0310-9956-ffa450edef68
2010-05-11 20:29:17 +00:00
Oleg Kalnichevski
7381110b46
HTTPCLIENT-939: 302 without redirect location should not cause a protocol exception
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@943247 13f79535-47bb-0310-9956-ffa450edef68
2010-05-11 19:49:38 +00:00
Oleg Kalnichevski
2b9d94af67
HTTPCLIENT-933: javadoc improvements
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@940214 13f79535-47bb-0310-9956-ffa450edef68
2010-05-02 13:20:07 +00:00
Sebastian Bazley
b2deb7e3ca
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@940074 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 16:25:44 +00:00
Sebastian Bazley
effe3abe30
Stop warning about deliberate unnecessary cast
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@940070 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 16:19:18 +00:00
Sebastian Bazley
955f47e6f5
HTTPCLIENT-932 Fix possible NPE - use sslsock rather than sock
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@940069 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 16:16:59 +00:00
Sebastian Bazley
64c00009a4
Add ThreadSafe annotation
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@939872 13f79535-47bb-0310-9956-ffa450edef68
2010-04-30 23:15:45 +00:00
Sebastian Bazley
0dcc10684f
Fix URL so it is guaranteed invalid forever.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@939870 13f79535-47bb-0310-9956-ffa450edef68
2010-04-30 23:03:57 +00:00
Oleg Kalnichevski
160af55cb1
Migrated test cases to JUnit 4.x
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@938585 13f79535-47bb-0310-9956-ffa450edef68
2010-04-27 18:02:08 +00:00
Oleg Kalnichevski
4defb0689f
TABS -> SPACES
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@937479 13f79535-47bb-0310-9956-ffa450edef68
2010-04-23 19:19:23 +00:00
Oleg Kalnichevski
2fd0728ca2
Make it easier to support connections via SOCKS proxies
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@937235 13f79535-47bb-0310-9956-ffa450edef68
2010-04-23 10:30:24 +00:00
Oleg Kalnichevski
1c9e9c1e05
Added connect via a SOCKS proxy example
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@937217 13f79535-47bb-0310-9956-ffa450edef68
2010-04-23 09:46:21 +00:00
Oleg Kalnichevski
0236581441
Removed calls to deprecated methods
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@937204 13f79535-47bb-0310-9956-ffa450edef68
2010-04-23 09:18:11 +00:00
Sebastian Bazley
a41e4366f5
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@936335 13f79535-47bb-0310-9956-ffa450edef68
2010-04-21 14:47:14 +00:00
Sebastian Bazley
2e1863f080
Javadoc; missing @Overrides
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@936334 13f79535-47bb-0310-9956-ffa450edef68
2010-04-21 14:45:06 +00:00
Sebastian Bazley
53d61aa4c6
Unnecessary casts
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@936332 13f79535-47bb-0310-9956-ffa450edef68
2010-04-21 14:42:47 +00:00
Sebastian Bazley
8d89fa2657
Replace obsolete ${pom.*} with ${project.*}
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@936249 13f79535-47bb-0310-9956-ffa450edef68
2010-04-21 10:51:40 +00:00
Oleg Kalnichevski
0f538860bd
HTTPCLIENT-909: upgrade all default socket factories to use SO_REUSEADDR parameter
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@934106 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 18:42:16 +00:00
Oleg Kalnichevski
c922b95f71
* Extended SSLSocketFactory with a mechanism to bypass the standard cert trust check (primarily to simplify dealing with self-signed certs)
...
* Refactored local test server
* Added more SSL tests
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@933731 13f79535-47bb-0310-9956-ffa450edef68
2010-04-13 18:22:25 +00:00
Oleg Kalnichevski
c80ee8a78d
HTTPCLIENT-901: pass HttpContext as a parameter to the AuthScheme#authenticate. Some complex auth scheme may require access to the execution context in order to work
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@932051 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 18:29:52 +00:00
Oleg Kalnichevski
42b6aa2f93
HTTPCLIENT-898: Improved multihome network support
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@932018 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 17:26:55 +00:00
Oleg Kalnichevski
14a4e09aa8
Removed deprecated HTTP parameters
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@932014 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 17:21:19 +00:00
Oleg Kalnichevski
8de26bac03
HTTPCLIENT-898: Refactored socket factory API (new socket factory interfaces are better suited for multihome hosts)
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@931624 13f79535-47bb-0310-9956-ffa450edef68
2010-04-07 17:28:15 +00:00
Oleg Kalnichevski
9b7b9c9ce1
HTTPCLIENT-930: Added protected #createLocationURI method to the DefaultRedirectStrategy
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@930560 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 18:36:31 +00:00