Commit Graph

429 Commits

Author SHA1 Message Date
Oleg Kalnichevski 5dffa49321 Corrected debug log message
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1197196 13f79535-47bb-0310-9956-ffa450edef68
2011-11-03 16:03:58 +00:00
Oleg Kalnichevski ae8e671030 HTTPCLIENT-1142: Infinite loop on NTLM authentication failure
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1197194 13f79535-47bb-0310-9956-ffa450edef68
2011-11-03 15:58:05 +00:00
Oleg Kalnichevski 7541429cf2 Upgraded project version to 4.2-alpha2-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1196788 13f79535-47bb-0310-9956-ffa450edef68
2011-11-02 20:19:52 +00:00
Oleg Kalnichevski d7d7bb2bde Fixed javadoc warnings
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1195170 13f79535-47bb-0310-9956-ffa450edef68
2011-10-30 14:32:39 +00:00
Oleg Kalnichevski 732095943f Redesigned auth caching
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1182515 13f79535-47bb-0310-9956-ffa450edef68
2011-10-12 18:33:15 +00:00
Oleg Kalnichevski 4d1b157272 Updated AuthState API
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1182317 13f79535-47bb-0310-9956-ffa450edef68
2011-10-12 11:45:54 +00:00
Oleg Kalnichevski 9edd1acd4f HTTPCLIENT-1136: fixed synchronization problem in #releaseConnection method
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181989 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 17:52:00 +00:00
Oleg Kalnichevski 2278378495 HTTPCLIENT-1129: Do not modify auth state on redirect if not redirecting to another host
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181901 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 17:22:08 +00:00
Oleg Kalnichevski 09f10b0f6e Renamed test classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181740 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 12:10:43 +00:00
Oleg Kalnichevski 5d6404cbca BasicClientConnectionManager to replace SingleClientConnManager
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181739 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 12:10:20 +00:00
Oleg Kalnichevski 94dea64e63 HTTPCLIENT-1123: DNS resolver null parameter check
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181737 13f79535-47bb-0310-9956-ffa450edef68
2011-10-11 12:09:55 +00:00
Oleg Kalnichevski 960ee2f581 HTTPCLIENT-1123: fixed broken PoolingClientConnectionManager constructor
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181208 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 20:18:24 +00:00
Oleg Kalnichevski d1450f9071 HTTPCLIENT-1123: added @since 4.2 tag
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181192 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 20:03:53 +00:00
Oleg Kalnichevski 287d839410 HTTPCLIENT-1128: SystemDefaultHttpClient to take http.keepAlive and http.maxConnections system properties into account
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181130 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 18:46:08 +00:00
Oleg Kalnichevski e41274c27d Fixed broken test case
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181127 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 18:41:37 +00:00
Oleg Kalnichevski da570f7079 HTTPCLIENT-1129: Better handling of unexpected authentication failures in the SUCCESS auth state
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181082 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 17:22:32 +00:00
Oleg Kalnichevski 8f46fbacd8 Better state handling in NegotiateScheme#authenticate
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181015 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 15:17:26 +00:00
Oleg Kalnichevski 90b6853111 HTTPCLIENT-1128: SystemDefaultHttpClient to use ProxySelectorRoutePlanner
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1181014 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 15:17:08 +00:00
Oleg Kalnichevski 7f04b88f12 HTTPCLIENT-1128: added SystemDefaultHttpClient, an extension of DefaultHttpClient pre-configured using system properties
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1180994 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 14:28:07 +00:00
Oleg Kalnichevski 420fc2604f HTTPCLIENT-1128: added factory method to create SSLSocketFactory instances initialized using system properties
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1180993 13f79535-47bb-0310-9956-ffa450edef68
2011-10-10 14:27:45 +00:00
Oleg Kalnichevski f2aa481280 Removed unused imports
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1180376 13f79535-47bb-0310-9956-ffa450edef68
2011-10-08 13:44:07 +00:00
Oleg Kalnichevski 28de736437 HTTPCLIENT-1127: a better fix for the deal-lock between SingleClientConnManager.releaseConnection() and SingleClientConnManager.shutdown(); previous fix may have broken ThreadSafeClientConnManager
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1180361 13f79535-47bb-0310-9956-ffa450edef68
2011-10-08 11:50:48 +00:00
Oleg Kalnichevski 6bd3da869d Added method to SchemeRegistryFactory to initialize default scheme registry using system properties
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1180360 13f79535-47bb-0310-9956-ffa450edef68
2011-10-08 11:50:01 +00:00
Oleg Kalnichevski 162f3d6d99 HTTPCLIENT-1131: HttpClient to authenticate preemptively using BASIC scheme if a userinfo attribute is specified in the request URI
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1180120 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 17:49:42 +00:00
Oleg Kalnichevski 430c3d530e Improved auth state tracking in HttpHttpAuthenticator
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1180056 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 14:35:40 +00:00
Oleg Kalnichevski 427d2c24e0 HTTPCLIENT-1134: make BasicResponseHandler consume response content in case of an unsuccessful result (status code >= 300)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1180014 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 12:14:49 +00:00
Oleg Kalnichevski 4f83ddb3e5 HTTPCLIENT-1132: ProxyClient implementation
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1179817 13f79535-47bb-0310-9956-ffa450edef68
2011-10-06 20:16:59 +00:00
Oleg Kalnichevski 6a6ee3737c Removed misleading comment
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1179744 13f79535-47bb-0310-9956-ffa450edef68
2011-10-06 18:21:33 +00:00
Oleg Kalnichevski 0c00bef71e HTTPCLIENT-1127: fixed dead-lock between SingleClientConnManager and AbstractPooledConnAdapter
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1179609 13f79535-47bb-0310-9956-ffa450edef68
2011-10-06 13:07:33 +00:00
Oleg Kalnichevski 62c57991f5 HTTPCLIENT-1120: AbstractPoolEntry to throw InterruptedIOException instead of plain IOException; HttpRequest to be added to the execution context prior to attempting to open connection (in case of a connect failure the retry handler can make use of the HttpRequest object bound to the context)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1179594 13f79535-47bb-0310-9956-ffa450edef68
2011-10-06 12:34:21 +00:00
Oleg Kalnichevski b1b85307a8 HTTPCLIENT-1120: moved test cases for abort handling to TestAbortHandling
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1179593 13f79535-47bb-0310-9956-ffa450edef68
2011-10-06 12:33:11 +00:00
Oleg Kalnichevski a38281b7f2 Fixed broken test case
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1178648 13f79535-47bb-0310-9956-ffa450edef68
2011-10-04 00:39:13 +00:00
Oleg Kalnichevski 76f66f4caa HTTPCLIENT-1107: test case for auth scheme fallback mechanism in case of multiple auth options
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1178640 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 23:51:45 +00:00
Oleg Kalnichevski 53883ec597 Unit tests for AuthenticationStrategyImpl
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1178616 13f79535-47bb-0310-9956-ffa450edef68
2011-10-03 22:17:01 +00:00
Sebastian Bazley bcc97c838f Replace greedy imports with specific ones
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1178262 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 22:16:47 +00:00
Oleg Kalnichevski 6b1ef7da2b HTTPCLIENT-1130: LaxRedirectStrategy improvements
Contributed by Alin Vasile <alinachegalati at yahoo.com> and Ryan Smith <rsmith at opensourcemasters.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1177980 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 13:59:33 +00:00
Oleg Kalnichevski 6ae3bb8bc8 Unit tests for HttpAuthenticator
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1177977 13f79535-47bb-0310-9956-ffa450edef68
2011-10-01 13:41:37 +00:00
Oleg Kalnichevski 0cad2defa7 HTTPCLIENT-1107: support for multiple auth options (first cut)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1177782 13f79535-47bb-0310-9956-ffa450edef68
2011-09-30 19:16:15 +00:00
Oleg Kalnichevski c514ac2a4c Renamed AuthChallengeState to AuthProtocolState
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1176369 13f79535-47bb-0310-9956-ffa450edef68
2011-09-27 13:05:46 +00:00
Sebastian Bazley e4ea515f20 HTTPCLIENT-1120 - DefaultHttpRequestRetryHandler#retryRequest should not retry aborted requests
Part two - still need to test connection abort (and fix if necessary)

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1176137 13f79535-47bb-0310-9956-ffa450edef68
2011-09-27 00:06:07 +00:00
Sebastian Bazley 9a701bfbe4 Suppress boxing warning for test case
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1175961 13f79535-47bb-0310-9956-ffa450edef68
2011-09-26 17:28:53 +00:00
Oleg Kalnichevski 145d0c1f3c HTTPCLIENT-1107: deprecated AuthenticationHandler in favor of new AuthenticationStrategy
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1175433 13f79535-47bb-0310-9956-ffa450edef68
2011-09-25 17:27:22 +00:00
Oleg Kalnichevski 70a34914ba HTTPCLIENT-1107: better tracking of auth challenge state transitions
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1175415 13f79535-47bb-0310-9956-ffa450edef68
2011-09-25 15:49:27 +00:00
Oleg Kalnichevski 3853906d7d HTTPCLIENT-1107: support auth scheme switching
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1175378 13f79535-47bb-0310-9956-ffa450edef68
2011-09-25 12:38:43 +00:00
Oleg Kalnichevski c4d1599bd0 HTTPCLIENT-1107: auth framework redesign
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1175377 13f79535-47bb-0310-9956-ffa450edef68
2011-09-25 12:25:07 +00:00
Oleg Kalnichevski e5d83200fd HTTPCLIENT-1107: auth framework redesign
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1175375 13f79535-47bb-0310-9956-ffa450edef68
2011-09-25 11:56:14 +00:00
Sebastian Bazley 47c6fa809f isDebugEnabled can only be true if isInfoEnabled is true, so don't perform a useless check
Also might as well merge the other log.info into the block

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1174784 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 14:07:26 +00:00
Oleg Kalnichevski 04626cb5ed Always shut down HttpClient used in local server based tests
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1174702 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 12:31:31 +00:00
Oleg Kalnichevski 28fbd4df7c Use new pooling connection manager per default
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1174683 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 12:06:12 +00:00
Oleg Kalnichevski 9ee4a41aa3 Upgraded HttpCore to version 4.2-alpha2
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1174627 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 09:53:42 +00:00