Commit Graph

104 Commits

Author SHA1 Message Date
Oleg Kalnichevski dbd7dd0efd HTTPCLIENT-832: Distinguish cookie format errors from violations of restrictions imposed by a cookie specification. In the latter case CookieRestrictionViolationException will be thrown
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@824685 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13 10:52:28 +00:00
Oleg Kalnichevski a09823ff00 * Removed superfluous SpnegoCreate flag
* Finalized SPNEGO example and tutorial

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@824409 13f79535-47bb-0310-9956-ffa450edef68
2009-10-12 16:26:38 +00:00
Oleg Kalnichevski 30b38eb6e4 Simplified configuration of connection managers. Total connection maximum and maximum connection per route limits can be set using methods of the class instead of HTTP parameters
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@820971 13f79535-47bb-0310-9956-ffa450edef68
2009-10-02 11:33:00 +00:00
Oleg Kalnichevski af4b944189 * Added HTTP parameters to define the order of preference for supported auth schemes for target host and proxy authentication
* Added SPNEGO auth policy

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@818601 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24 19:35:03 +00:00
Oleg Kalnichevski 44ece542dc HTTPCLIENT-875: DefaultClientConnectionOperator#openConnection doesn't update the connection state if the connection socket changed after the call to SocketFactory#connectSocket()
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@813104 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 20:31:05 +00:00
Oleg Kalnichevski d384ec4e3a Merged /httpcomponents/httpclient/branches/branch_4_1:r755593-811107
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@811110 13f79535-47bb-0310-9956-ffa450edef68
2009-09-03 20:33:15 +00:00
Oleg Kalnichevski 55d9c6f161 HTTPCLIENT-861: URI reference resolution fails examples in RFC 3986
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@794870 13f79535-47bb-0310-9956-ffa450edef68
2009-07-16 21:30:38 +00:00
Oleg Kalnichevski 3c93d00a74 HTTPCLIENT-860: HttpClient no longer converts redirects of PUT/POST to GET for status codes 301, 302, 307, as required by the HTTP spec
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@794051 13f79535-47bb-0310-9956-ffa450edef68
2009-07-14 20:12:27 +00:00
Oleg Kalnichevski 58a50ef47f Updated release notes for 4.0 final release
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@793356 13f79535-47bb-0310-9956-ffa450edef68
2009-07-12 14:25:51 +00:00
Oleg Kalnichevski 9a2a3cb732 HTTPCLIENT-859: CookieIdentityComparator now takes path attribute into consideration when comparing cookies
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@792645 13f79535-47bb-0310-9956-ffa450edef68
2009-07-09 19:29:11 +00:00
Oleg Kalnichevski 2b69ac0ae9 HttpClient will no longer send expired cookies back to the origin server
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@792269 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 19:10:52 +00:00
Oleg Kalnichevski db2d11720a HTTPCLIENT-856: Proxy NTLM authentication no longer fails on a redirect to a different host
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@789408 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 18:43:51 +00:00
Oleg Kalnichevski bd2f049ada HTTPCLIENT-841: removed connection garbage collection due to a memory leak
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@784361 13f79535-47bb-0310-9956-ffa450edef68
2009-06-13 10:13:36 +00:00
Oleg Kalnichevski b71fefd093 HTTPCLIENT-853: Fixed bug causing invalid cookie origin port to be selected when the target is accessed on the default port and the connection is established via a proxy
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@780802 13f79535-47bb-0310-9956-ffa450edef68
2009-06-01 20:01:01 +00:00
Oleg Kalnichevski 6681a1193d HTTPCLIENT-852: Fixed bug causing automatically retried redirects fail with CircularRedirectException
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@780611 13f79535-47bb-0310-9956-ffa450edef68
2009-06-01 10:39:05 +00:00
Oleg Kalnichevski 0b5dd9c3a5 Fixed problem with the default HTTP response parser failing to handle garbage preceding a valid HTTP response
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@765294 13f79535-47bb-0310-9956-ffa450edef68
2009-04-15 18:19:53 +00:00
Sam Berlin 165507b8d7 include the cause of a NonRepeatableRequestException when failing.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@758447 13f79535-47bb-0310-9956-ffa450edef68
2009-03-25 22:05:45 +00:00
Oleg Kalnichevski bc063a1ad0 HTTPCLIENT-837: Fixed problem with the wire log skipping zero byte values if read one byte at a time.
Contributed by Kirill Safonov <ksafonov at swiftteams.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@757528 13f79535-47bb-0310-9956-ffa450edef68
2009-03-23 20:14:05 +00:00
Oleg Kalnichevski 2e4ab52fd5 HTTPCLIENT-823: 'http.conn-manager.max-total' parameter can be adjusted dynamically. However, the size of existing
connection pools per route, once allocated, will not be adjusted.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@747762 13f79535-47bb-0310-9956-ffa450edef68
2009-02-25 12:16:27 +00:00
Oleg Kalnichevski d855722988 HTTPCLIENT-822: Default socket factories to re-throw SocketTimeoutException as ConnectTimeoutException in case of connect failure due to time out
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@744525 13f79535-47bb-0310-9956-ffa450edef68
2009-02-14 17:01:38 +00:00
Oleg Kalnichevski dd5061b2ab HTTPCLIENT-813: Fixed default port resolution. Invalid ports no longer get replaced with the default port value.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@744520 13f79535-47bb-0310-9956-ffa450edef68
2009-02-14 16:46:33 +00:00
Oleg Kalnichevski 61120d5695 Fixed dependency info in README.txt and a typo in RELEASE_NOTES.txt
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@726111 13f79535-47bb-0310-9956-ffa450edef68
2008-12-12 20:22:40 +00:00
Oleg Kalnichevski c6769986be Fixed NPE in DefaultRequestDirector thrown when retrying a failed request over a proxied connection
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@723813 13f79535-47bb-0310-9956-ffa450edef68
2008-12-05 18:54:23 +00:00
Oleg Kalnichevski 9570849f9c My optimism about the stability of HttpClient trunk was premature. Most likely more than one BETA will be needed before the final release.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@723810 13f79535-47bb-0310-9956-ffa450edef68
2008-12-05 18:48:45 +00:00
Oleg Kalnichevski f4b419ff8a Updated release notes and the web site for HttpClient 4.0-beta2 release
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@723027 13f79535-47bb-0310-9956-ffa450edef68
2008-12-03 19:30:22 +00:00
Oleg Kalnichevski e6a8741780 HTTPCLIENT-803: Fixed bug in SSL host verifier implementations causing the SSL certificate to be rejected as invalid if the connection is established using an IP address
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@709402 13f79535-47bb-0310-9956-ffa450edef68
2008-10-31 13:08:23 +00:00
Oleg Kalnichevski e69e89e496 HTTPCLIENT-806: DefaultHttpMethodRetryHandler will no longer retry on ConnectExceptions
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@709159 13f79535-47bb-0310-9956-ffa450edef68
2008-10-30 13:56:25 +00:00
Oleg Kalnichevski e434f1367a DigestScheme can use an arbitrary digest algorithm requested by the target server (such SHA) as long as this algorithm is supported by the Java runtime
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@708595 13f79535-47bb-0310-9956-ffa450edef68
2008-10-28 15:11:25 +00:00
Oleg Kalnichevski c3b6c426ca Fixed parsing and validation of RFC2109 compliant Set-Cookie headers by the Best-Match cookie spec
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@708579 13f79535-47bb-0310-9956-ffa450edef68
2008-10-28 14:05:58 +00:00
Oleg Kalnichevski 0cdd9b7fc2 Fixed bug that can cause a managed connection to be returned from the pool in an inconsistent state
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@708170 13f79535-47bb-0310-9956-ffa450edef68
2008-10-27 13:27:39 +00:00
Oleg Kalnichevski 9300827b9e Removed outdated jardiff logs
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@687115 13f79535-47bb-0310-9956-ffa450edef68
2008-08-19 18:05:24 +00:00
Oleg Kalnichevski e07c5a6167 Updated the web site and POM descriptors for 4.0-beta1 release
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@687114 13f79535-47bb-0310-9956-ffa450edef68
2008-08-19 18:03:52 +00:00
Oleg Kalnichevski d2b34bce20 HTTPCLIENT-790: Protocol interceptors not called when executing CONNECT methods
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@685136 13f79535-47bb-0310-9956-ffa450edef68
2008-08-12 12:53:49 +00:00
Oleg Kalnichevski 8a92c9712d HTTPCLIENT-668: removed static loggers
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@673172 13f79535-47bb-0310-9956-ffa450edef68
2008-07-01 18:52:41 +00:00
Sam Berlin 4752936837 HTTPCLIENT-781 -- respect keep-alive header.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@671717 13f79535-47bb-0310-9956-ffa450edef68
2008-06-26 04:03:24 +00:00
Sam Berlin baaef5ace5 add HTTPCLIENT-779 change to release notes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@664534 13f79535-47bb-0310-9956-ffa450edef68
2008-06-08 18:11:52 +00:00
Oleg Kalnichevski a25cb3c6c0 HttpClient will throw an exception if an attempt is made to retry a request with a non-repeatable request entity.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@664066 13f79535-47bb-0310-9956-ffa450edef68
2008-06-06 18:13:18 +00:00
Oleg Kalnichevski 650a04c734 Fixed request re-generation logic when retrying a failed request. Auto-generated headers will no accumulate.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@661444 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 19:41:00 +00:00
Oleg Kalnichevski c0cf0c7654 HTTPCLIENT-424: Preemptive authentication no longer limited to BASIC scheme only. HttpClient can be customized to authenticate preemptively with DIGEST scheme
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@659595 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 16:47:14 +00:00
Oleg Kalnichevski a89695fea4 HTTPCLIENT-670: Pluggable hostname resolver
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@659194 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 18:33:47 +00:00
Oleg Kalnichevski 5cd9d169f2 HTTPCLIENT-719: Clone support for HTTP request and cookie objects
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@659191 13f79535-47bb-0310-9956-ffa450edef68
2008-05-22 18:26:53 +00:00
Oleg Kalnichevski 1b4ecf0b57 HTTPCLIENT-776: Fixed concurrency issues with AbstractPoolEntry
Contributed by Sam Berlin <sberlin at gmail.com>
Reviewed by Oleg Kalnichevski



git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@658775 13f79535-47bb-0310-9956-ffa450edef68
2008-05-21 17:30:45 +00:00
Oleg Kalnichevski 6d0c809900 Resolved a long standing problem with HttpClient not taking into account the user context when pooling / re-using connections. HttpClient now correctly handles stateful / user specific connections such as persistent NTLM connections and SSL connections with client side authentication.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@658759 13f79535-47bb-0310-9956-ffa450edef68
2008-05-21 17:06:17 +00:00
Oleg Kalnichevski c9a4970c10 HTTPCLIENT-773: Improved handling of the 'expires' attribute by the 'Best Match' cookie spec
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@657334 13f79535-47bb-0310-9956-ffa450edef68
2008-05-17 11:44:16 +00:00
Oleg Kalnichevski 4022a78140 Added NTLM_SUPPORT.txt document describing steps necessary to NTLM enable Httpclient
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@655311 13f79535-47bb-0310-9956-ffa450edef68
2008-05-11 13:01:02 +00:00
Sebastian Bazley 5eedce1de8 HTTPCLIENT-765 - String.toLowerCase() / toUpperCase() should specify Locale.ENGLISH
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652952 13f79535-47bb-0310-9956-ffa450edef68
2008-05-02 23:52:56 +00:00
Oleg Kalnichevski 18ee596a4d HTTPCLIENT-769: Do not pool connection marked non-reusable
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652945 13f79535-47bb-0310-9956-ffa450edef68
2008-05-02 23:10:20 +00:00
Oleg Kalnichevski eea2c52630 Minor change in the release notes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@652457 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 09:33:07 +00:00
Oleg Kalnichevski 67c6704035 Updated release notes for HttpClient 4.0-alpha4 release
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@651810 13f79535-47bb-0310-9956-ffa450edef68
2008-04-26 09:55:02 +00:00
Oleg Kalnichevski 374228c58c HTTPCLIENT-763: AbstractClientConnAdapter#abortConnection() does not release the connection if called from the main execution thread while there is no blocking I/O operation.
AbstractClientConnAdapter#abortConnection() is usually expected to be called from a helper thread in order to unblock the main execution thread blocked in an I/O operation. It may be unsafe to call AbstractClientConnAdapter#releaseConnection() from the helper thread, so we have to rely on an IOException thrown by the closed socket on the main thread to trigger the release of the connection back to the connection manager. However, if this method is called from the main execution thread it should be safe to release the connection immediately. Besides, this also helps ensure the connection gets released back to the manager if AbstractClientConnAdapter#abortConnection() is called from the main execution thread while there is no blocking I/O operation.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@650225 13f79535-47bb-0310-9956-ffa450edef68
2008-04-21 19:14:23 +00:00