Commit Graph

1058 Commits

Author SHA1 Message Date
Oleg Kalnichevski 2d17d461bb Added another URI rewriting test case
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1511689 13f79535-47bb-0310-9956-ffa450edef68
2013-08-08 10:56:46 +00:00
Oleg Kalnichevski 78295c169a Minor performance optimization: do not consume content of an intermediate response if the underlying connection is not re-usable
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1511652 13f79535-47bb-0310-9956-ffa450edef68
2013-08-08 09:39:19 +00:00
Oleg Kalnichevski 4db8167981 Cleaned up HttpRoute
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1511446 13f79535-47bb-0310-9956-ffa450edef68
2013-08-07 19:20:18 +00:00
Oleg Kalnichevski e40168d06c Unit tests for MainClientExec
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1511445 13f79535-47bb-0310-9956-ffa450edef68
2013-08-07 19:20:05 +00:00
Oleg Kalnichevski d90302ed14 Upgraded HttpCore to version 4.3
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1510886 13f79535-47bb-0310-9956-ffa450edef68
2013-08-06 08:53:13 +00:00
Oleg Kalnichevski fc8df4ef2a Improved test coverage for classes added in 4.3
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1508949 13f79535-47bb-0310-9956-ffa450edef68
2013-07-31 16:29:35 +00:00
Oleg Kalnichevski 834d5e66da Deprecated SSLSocketFactory in favor of SSLConnectionSocketFactory
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1507677 13f79535-47bb-0310-9956-ffa450edef68
2013-07-27 15:59:36 +00:00
Oleg Kalnichevski e7d9978f26 Moved deprecated classes to a separate scr folder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1507633 13f79535-47bb-0310-9956-ffa450edef68
2013-07-27 13:16:37 +00:00
Oleg Kalnichevski 914c9ceba6 Fixed check style violations
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1505609 13f79535-47bb-0310-9956-ffa450edef68
2013-07-22 07:21:36 +00:00
Sebastian Bazley 4aa221dd54 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1505483 13f79535-47bb-0310-9956-ffa450edef68
2013-07-21 22:28:14 +00:00
Sebastian Bazley 4790be3c56 The final keyword should the the final keyword!
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1501015 13f79535-47bb-0310-9956-ffa450edef68
2013-07-08 23:39:18 +00:00
Oleg Kalnichevski b524b797c4 Follow up to HTTPCLIENT-1383: fixes another infinite loop in case of an out of sequence NTLM response
Contributed by Ricardo Pereira <thc202 at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1500629 13f79535-47bb-0310-9956-ffa450edef68
2013-07-08 09:28:50 +00:00
Oleg Kalnichevski 9385b90c0a Follow up to HTTPCLIENT-1383: fixes another infinite loop in case of an out of sequence NTLM response
Contributed by Ricardo Pereira <thc202 at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1500407 13f79535-47bb-0310-9956-ffa450edef68
2013-07-07 11:29:06 +00:00
Oleg Kalnichevski bb902afa4f Follow up to HTTPCLIENT-1381: fixes another NPE
Contributed by Ricardo Pereira <thc202 at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1500401 13f79535-47bb-0310-9956-ffa450edef68
2013-07-07 10:20:33 +00:00
Oleg Kalnichevski f17ef0ad11 HTTPCLIENT-1381: tolerate null NT domain and host
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1500276 13f79535-47bb-0310-9956-ffa450edef68
2013-07-06 14:12:55 +00:00
Oleg Kalnichevski 6b0fdc74cc HTTPCLIENT-1383: HttpClient enters an infinite loop during NTLM authentication if the opposite endpoint keeps responding with a type 2 NTLM response after type 3 MTLM message has already been sent by the client
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1500275 13f79535-47bb-0310-9956-ffa450edef68
2013-07-06 14:12:43 +00:00
Oleg Kalnichevski 86e8b3d840 HTTPCLIENT-1382: fixed invalid default scheme registration in BasicHttpClientConnectionManager
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1499978 13f79535-47bb-0310-9956-ffa450edef68
2013-07-05 12:01:24 +00:00
Oleg Kalnichevski efe3d7d7e2 HTTPCLIENT-1379: added X509HostnameVerifier setter to HttpClientBuilder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1498955 13f79535-47bb-0310-9956-ffa450edef68
2013-07-02 14:32:47 +00:00
Oleg Kalnichevski 47f900a03f Fixed maven checkstyle config; fixed format violations
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1495818 13f79535-47bb-0310-9956-ffa450edef68
2013-06-23 14:07:22 +00:00
Oleg Kalnichevski 4ab2f9494a Enhanced SSLContextBuilder; added PrivateKeyStrategy interface to enable customization of private key selection; more SSL test cases
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1495022 13f79535-47bb-0310-9956-ffa450edef68
2013-06-20 14:34:37 +00:00
Oleg Kalnichevski eeba3e364d SSL test case cleanup
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1494878 13f79535-47bb-0310-9956-ffa450edef68
2013-06-20 07:18:52 +00:00
Oleg Kalnichevski 2e72fffacf HTTPCLIENT-1377: User principal for non-NTLM authentication is incorrectly generated when using user credentials are specified as NTCredentials
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1494747 13f79535-47bb-0310-9956-ffa450edef68
2013-06-19 19:39:44 +00:00
Oleg Kalnichevski c72ac38d2e HTTPCLIENT-1374: Added public default ManagedHttpClientConnection impl
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1494675 13f79535-47bb-0310-9956-ffa450edef68
2013-06-19 16:07:10 +00:00
Sebastian Bazley 0533ce7c53 Remove unthrown exceptions from private and package methods
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1493752 13f79535-47bb-0310-9956-ffa450edef68
2013-06-17 13:15:48 +00:00
Sebastian Bazley ea9662ee39 Spurious @return
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1493751 13f79535-47bb-0310-9956-ffa450edef68
2013-06-17 13:15:05 +00:00
Oleg Kalnichevski dc3b8d47fb HTTPCLIENT-1374: Added route parameter to HttpConnectionFactory
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1493350 13f79535-47bb-0310-9956-ffa450edef68
2013-06-15 12:50:56 +00:00
Oleg Kalnichevski 56b7cbe159 Upgraded project version to 4.3-beta3-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1492097 13f79535-47bb-0310-9956-ffa450edef68
2013-06-12 07:51:45 +00:00
Oleg Kalnichevski 7a33d56a69 Fixed race condition in TestFutureRequestExecutionService#shouldExecuteMultipleCallsAndCallback
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1491891 13f79535-47bb-0310-9956-ffa450edef68
2013-06-11 18:14:10 +00:00
Oleg Kalnichevski ab9452fd98 Fixed client config example
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1491802 13f79535-47bb-0310-9956-ffa450edef68
2013-06-11 14:10:47 +00:00
Oleg Kalnichevski 656c6ecedc Removed #executeMultiple from FutureRequestExecutionService
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1491801 13f79535-47bb-0310-9956-ffa450edef68
2013-06-11 14:10:31 +00:00
Oleg Kalnichevski b1c387e986 Style-check to enforce unused import and final variable checks
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1491511 13f79535-47bb-0310-9956-ffa450edef68
2013-06-10 15:52:49 +00:00
Gary D. Gregory aa09b30167 [HTTPCLIENT-1366] org.apache.http.client.utils.URLEncodedUtils should parse the semicolon as a query parameter separator. Contributed by Gary Gregory <ggregory at apache.org>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1490331 13f79535-47bb-0310-9956-ffa450edef68
2013-06-06 16:00:05 +00:00
Gary D. Gregory cc604018b9 Fix method declaration format from 'method ()' to 'method()'.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1490310 13f79535-47bb-0310-9956-ffa450edef68
2013-06-06 14:51:15 +00:00
Gary D. Gregory 52ddef91fa [HTTPCLIENT-1365] NPE when ManagedHttpClientConnectionFactory.create(ConnectionConfig) is called with null. Contributed by Gary Gregory <ggregory at apache.org>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1490299 13f79535-47bb-0310-9956-ffa450edef68
2013-06-06 14:31:08 +00:00
Oleg Kalnichevski f983922157 SchemePortResolver to throw UnsupportedSchemeException in case of an unknown protocol scheme
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1490251 13f79535-47bb-0310-9956-ffa450edef68
2013-06-06 12:16:53 +00:00
Oleg Kalnichevski d04b7baa64 HTTPCLIENT-1362: better error messages for connect timed out and connection refused exceptions (second cut)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1489438 13f79535-47bb-0310-9956-ffa450edef68
2013-06-04 13:27:02 +00:00
Oleg Kalnichevski eb26f23b3d HTTPCLIENT-1364: added default constructor to NTLMScheme
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1489313 13f79535-47bb-0310-9956-ffa450edef68
2013-06-04 07:54:32 +00:00
Gary D. Gregory 70e8b48473 Javadoc: TLA should be upper-case.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1489243 13f79535-47bb-0310-9956-ffa450edef68
2013-06-04 00:19:25 +00:00
Gary D. Gregory 2fba1839de Match this kind of param name to the other methods in this class (encoding -> charset).
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1489242 13f79535-47bb-0310-9956-ffa450edef68
2013-06-04 00:18:35 +00:00
Gary D. Gregory 664a273374 Use camel-case for method names (example: urldecode -> urlDecode).
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1489240 13f79535-47bb-0310-9956-ffa450edef68
2013-06-04 00:16:28 +00:00
Oleg Kalnichevski bcabf224b8 Removed 'http.socket-factory-registry' context attribute from public APIs
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1488984 13f79535-47bb-0310-9956-ffa450edef68
2013-06-03 13:16:35 +00:00
Oleg Kalnichevski e34e868ddc HTTPCLIENT-1362: better error messages for connect timed out and connection refused exceptions
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1488966 13f79535-47bb-0310-9956-ffa450edef68
2013-06-03 11:52:17 +00:00
Karl Wright f0f2c89ffb Fix for HTTPCLIENT-1360. Separate out DeflateInputStream class from DeflateEntity.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1487630 13f79535-47bb-0310-9956-ffa450edef68
2013-05-29 20:24:37 +00:00
Oleg Kalnichevski b8c0487c91 HTTPCLIENT-1359: repeated requests using the same context fail if they redirect
Contributed by James Leigh <james at 3roundstones.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1487463 13f79535-47bb-0310-9956-ffa450edef68
2013-05-29 12:45:31 +00:00
Oleg Kalnichevski 2bd70ff44c HTTPCLIENT-1351: Made URICollection a concrete class; added #clear() method
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1487448 13f79535-47bb-0310-9956-ffa450edef68
2013-05-29 12:18:34 +00:00
Oleg Kalnichevski d917eec043 Removed executable flag
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1487414 13f79535-47bb-0310-9956-ffa450edef68
2013-05-29 09:05:37 +00:00
Oleg Kalnichevski eeaec64f5c HTTPCLIENT-1351: Added utility method to resolve final location from original request, target host and a list of redirects
Contributed by James Leigh <james at 3roundstones.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1487413 13f79535-47bb-0310-9956-ffa450edef68
2013-05-29 09:04:54 +00:00
Oleg Kalnichevski 26ee6689f3 HTTPCLIENT-1351: added method to HttpClientContext to obtain redirect locations
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1486956 13f79535-47bb-0310-9956-ffa450edef68
2013-05-28 15:08:31 +00:00
Oleg Kalnichevski 6fad24aef2 HTTPCLIENT-1357: Connection upgrade operation does not resolve default port (-1) to a scheme default value which can lead to a InvalidArgumentException on some platforms
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1486900 13f79535-47bb-0310-9956-ffa450edef68
2013-05-28 12:14:19 +00:00
Oleg Kalnichevski 68a101475a HTTPCLIENT-1355: HttpRequestWrapper to implement HttpUriRequest
Contributed by James Leigh <james at 3roundstones.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1486407 13f79535-47bb-0310-9956-ffa450edef68
2013-05-26 10:59:48 +00:00
Oleg Kalnichevski 6a58c84b03 HTTPCLIENT-1354: do not quote algorithm parameter in DIGEST auth response
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1485210 13f79535-47bb-0310-9956-ffa450edef68
2013-05-22 13:49:31 +00:00
Oleg Kalnichevski a679b4f4ec HTTPCLIENT-1351: Preserve last request URI in the execution context)
Contributed by James Leigh <james at 3roundstones.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1483848 13f79535-47bb-0310-9956-ffa450edef68
2013-05-17 15:13:55 +00:00
Oleg Kalnichevski 45456cf1f0 HTTPCLIENT-1303: support for java.net.Authenticator backed crednetials provider
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1483846 13f79535-47bb-0310-9956-ffa450edef68
2013-05-17 15:06:10 +00:00
Oleg Kalnichevski 87d5a1dce9 Workaround a bug in state management of re-opened connections in HttpCore
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1483844 13f79535-47bb-0310-9956-ffa450edef68
2013-05-17 15:05:16 +00:00
Oleg Kalnichevski 29ffce391c HTTPCLIENT-1351: Preserve last request URI fragment in the execution context
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1483736 13f79535-47bb-0310-9956-ffa450edef68
2013-05-17 11:01:54 +00:00
Oleg Kalnichevski 3665ee0d37 Minor optimization
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1483735 13f79535-47bb-0310-9956-ffa450edef68
2013-05-17 11:01:28 +00:00
Oleg Kalnichevski 013d53a64f HTTPCLIENT-1344: Userinfo credentials in URI should not default to preemptive BASIC authentication
HTTPCLIENT-1345: Useinfo credentials ignored in redirect location header

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1483383 13f79535-47bb-0310-9956-ffa450edef68
2013-05-16 14:15:51 +00:00
Oleg Kalnichevski 4add562f6c Tweaked example app
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1483382 13f79535-47bb-0310-9956-ffa450edef68
2013-05-16 14:15:11 +00:00
Oleg Kalnichevski 077dbc687a HTTPCLIENT-1207: Improve extensibility of DefaultHttpRequestRetryHandler
Contributed by Joshua Spiewak <jss at ivyventures.net>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1483302 13f79535-47bb-0310-9956-ffa450edef68
2013-05-16 11:37:18 +00:00
Oleg Kalnichevski 600c19f5c5 HTTPCLIENT-1294: HttpClient to rewrite host name of the redirect location URI in order to avoid circular redirect exception due to host name case mismatch.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1483267 13f79535-47bb-0310-9956-ffa450edef68
2013-05-16 09:13:11 +00:00
Oleg Kalnichevski ff1acb48a8 Code cleanups
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1483265 13f79535-47bb-0310-9956-ffa450edef68
2013-05-16 09:12:42 +00:00
Oleg Kalnichevski 345e69dc9f Throw UnsupportedSchemeException instead of plain IOException in case of an unsupported protocol scheme
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1479825 13f79535-47bb-0310-9956-ffa450edef68
2013-05-07 09:23:40 +00:00
Karl Wright 0ba38201ad Fix for HTTPCLIENT-1264.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1479699 13f79535-47bb-0310-9956-ffa450edef68
2013-05-06 22:18:21 +00:00
Oleg Kalnichevski 0ed671153e HTTPCLIENT-1348: Use plus character in addition to comma as a multi-value delimiter when extracting certificate CN in AbstractVerifier
Contributed by Vasil Badev <v_badev at infonotary.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1478931 13f79535-47bb-0310-9956-ffa450edef68
2013-05-03 19:15:51 +00:00
Oleg Kalnichevski d2aafabd0a Removed references to deprecated methods
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1478926 13f79535-47bb-0310-9956-ffa450edef68
2013-05-03 18:58:08 +00:00
Oleg Kalnichevski f08b21bdf1 HTTPCLIENT-1349: Removed references to deprecated methods
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1478916 13f79535-47bb-0310-9956-ffa450edef68
2013-05-03 18:45:57 +00:00
Oleg Kalnichevski e71b14d28c HTTPCLIENT-1349: SSLSocketFactory incorrectly identifies key passed with keystore as the keystore password
Contributed by David Graff <djgraff209 at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1478903 13f79535-47bb-0310-9956-ffa450edef68
2013-05-03 18:34:49 +00:00
Oleg Kalnichevski 53e3c07805 HTTPCLIENT-1346: Ensure propagation of SSL handshake exceptions
Contributed by Pasi Eronen <pe at iki.fi>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1471292 13f79535-47bb-0310-9956-ffa450edef68
2013-04-24 08:42:29 +00:00
Oleg Kalnichevski 228e85deb7 HTTPCLIENT-1343: SSLSocketFactory optional parameters for supported SSL protocols and cipher suites
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1469809 13f79535-47bb-0310-9956-ffa450edef68
2013-04-19 12:46:22 +00:00
Oleg Kalnichevski e1b869d6c9 HTTPCLIENT-1343: deprecated SSLSocketFactory overloaded constructors in favor of SSLContextBuilder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1469333 13f79535-47bb-0310-9956-ffa450edef68
2013-04-18 14:04:04 +00:00
Oleg Kalnichevski 68243b227f HTTPCLIENT-1341] DeflateDecompressingEntity does not call Inflater#end
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1469235 13f79535-47bb-0310-9956-ffa450edef68
2013-04-18 09:15:00 +00:00
Oleg Kalnichevski 5769675b15 Redirects with underscore character in the location hostname cause IllegalArgumentException
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1467942 13f79535-47bb-0310-9956-ffa450edef68
2013-04-15 11:36:34 +00:00
Oleg Kalnichevski 485f06bb27 HTTPCLIENT-1338: (regression) Invalidated / stale DIGEST schemes do not get evicted from the auth cache
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1467929 13f79535-47bb-0310-9956-ffa450edef68
2013-04-15 10:25:34 +00:00
Oleg Kalnichevski e8c5d1bca4 Backported fix and test case for HTTPCLIENT-1340
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1467586 13f79535-47bb-0310-9956-ffa450edef68
2013-04-13 10:38:24 +00:00
Oleg Kalnichevski c53c5f1e1e Upgraded project version to 4.3-beta2-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1466429 13f79535-47bb-0310-9956-ffa450edef68
2013-04-10 11:30:43 +00:00
Sebastian Bazley f07e2a4c3d Trailing white space
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1464559 13f79535-47bb-0310-9956-ffa450edef68
2013-04-04 14:10:29 +00:00
Sebastian Bazley d87d19be4e HTTPCLIENT-1319 InetAddressUtils.isIPv6HexCompressedAddress does not detect excess groups
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1464531 13f79535-47bb-0310-9956-ffa450edef68
2013-04-04 13:37:04 +00:00
Oleg Kalnichevski 3ab8ff3717 Javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1464423 13f79535-47bb-0310-9956-ffa450edef68
2013-04-04 10:32:42 +00:00
Oleg Kalnichevski aaf08cec5c HTTPCLIENT-1336: javadoc improvements
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1464408 13f79535-47bb-0310-9956-ffa450edef68
2013-04-04 09:50:04 +00:00
Oleg Kalnichevski a6a328a7af Moved DateUtils to o.a.http.client.utils
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1464366 13f79535-47bb-0310-9956-ffa450edef68
2013-04-04 08:57:36 +00:00
Oleg Kalnichevski 69a7589ad5 Fixed synchronization bug
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1464365 13f79535-47bb-0310-9956-ffa450edef68
2013-04-04 08:56:04 +00:00
Oleg Kalnichevski 1242243793 Moved HttpAuthenticator to o.a.http.impl.auth
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1463959 13f79535-47bb-0310-9956-ffa450edef68
2013-04-03 12:27:18 +00:00
Oleg Kalnichevski 3f444fc740 Deprecated ClientContext; removed references to deprecated methods
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1463938 13f79535-47bb-0310-9956-ffa450edef68
2013-04-03 11:56:34 +00:00
Oleg Kalnichevski ee0997dfff HTTPCLIENT-1329: SSLSocketFactory keystorePassword constructor parameter should be char[] instead of java.lang.String
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1463575 13f79535-47bb-0310-9956-ffa450edef68
2013-04-02 14:49:41 +00:00
Oleg Kalnichevski 2f310c3744 Fixed race condition in #shouldExecuteMultipleCallsAndCallback test case
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1463521 13f79535-47bb-0310-9956-ffa450edef68
2013-04-02 13:11:24 +00:00
Oleg Kalnichevski 26add4a3d6 HTTPCLIENT-1327: BrowserCompatSpec double quotes cookie value when 'expires' attribute is present
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1463513 13f79535-47bb-0310-9956-ffa450edef68
2013-04-02 12:50:19 +00:00
Oleg Kalnichevski 5f5269f171 HTTPCLIENT-1331: made timeout value less aggressive
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1463472 13f79535-47bb-0310-9956-ffa450edef68
2013-04-02 10:23:10 +00:00
Oleg Kalnichevski 0373fbed65 Renamed HttpAsyncClientWithFuture to FutureRequestExecutionService; moved implementation classes to o.a.h.impl.client package
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1463471 13f79535-47bb-0310-9956-ffa450edef68
2013-04-02 10:22:55 +00:00
Oleg Kalnichevski 458575bf59 HTTPCLIENT-1322: Factory method + example for HttpAsyncClientWithFuture. Follow-up to HTTPCLIENT-1307
Contributed by Jilles van Gurp <jilles at jillesvangurp.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1462087 13f79535-47bb-0310-9956-ffa450edef68
2013-03-28 13:30:06 +00:00
Oleg Kalnichevski 60bca79a3c Upgraded HttpCore to version 4.3-beta1
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1460717 13f79535-47bb-0310-9956-ffa450edef68
2013-03-25 15:34:27 +00:00
Oleg Kalnichevski 371b754e1c Added SSLContext as an option for SSL customization
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1460555 13f79535-47bb-0310-9956-ffa450edef68
2013-03-25 09:15:28 +00:00
Oleg Kalnichevski 96c021c8dd Fixed broken authentication support in deprecated DefaultHttpClient and its subclasses
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1460554 13f79535-47bb-0310-9956-ffa450edef68
2013-03-25 09:15:13 +00:00
Oleg Kalnichevski 9d6d3b6288 HTTPCLIENT-1320: Leverage javax.net.ssl.SSLSocketFactory#getDefault() to initialize SSL context based on system defaults instead of using an internal custom routine
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1454687 13f79535-47bb-0310-9956-ffa450edef68
2013-03-09 11:41:56 +00:00
Oleg Kalnichevski ec85a83173 Minor tweak to debug log message
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1454680 13f79535-47bb-0310-9956-ffa450edef68
2013-03-09 09:46:59 +00:00
Oleg Kalnichevski fd5cab185b Revised HttpClientConnectionManager API
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1454679 13f79535-47bb-0310-9956-ffa450edef68
2013-03-09 09:46:33 +00:00
Francois-Xavier Bonnet c6355ba412 HTTPCLIENT-1328: socketTimeout parameter is ignored
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1450810 13f79535-47bb-0310-9956-ffa450edef68
2013-02-27 15:32:09 +00:00
Francois-Xavier Bonnet d73f4c1b38 HTTPCLIENT-1325: Using a HttpRequest that is not an HttpUriRequest when host in URI is not target host results in an invalid request
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1448936 13f79535-47bb-0310-9956-ffa450edef68
2013-02-22 08:36:36 +00:00
Karl Wright 584309b3e8 Fix for HTTPCLIENT-1315.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1447065 13f79535-47bb-0310-9956-ffa450edef68
2013-02-17 20:01:49 +00:00
Francois-Xavier Bonnet f4447aef19 Added javadoc for deprecation
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1445598 13f79535-47bb-0310-9956-ffa450edef68
2013-02-13 13:48:49 +00:00
Francois-Xavier Bonnet 5fbe5ea46d HTTPCLIENT-1323: CachingHttpClient ignores params set on the request
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1445521 13f79535-47bb-0310-9956-ffa450edef68
2013-02-13 09:51:24 +00:00
Sebastian Bazley f4c45c1e6f Show repeated string in compressed pattern
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1445026 13f79535-47bb-0310-9956-ffa450edef68
2013-02-12 03:23:52 +00:00
Sebastian Bazley cd1ac109d3 Add tests to show compressed IPv6 addresses cannot have too many leading or trailing fields
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1445023 13f79535-47bb-0310-9956-ffa450edef68
2013-02-12 03:09:30 +00:00
Sebastian Bazley c29390b4dc Remove single trailing space (checkstyle is rather fierce!)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1444943 13f79535-47bb-0310-9956-ffa450edef68
2013-02-11 20:19:56 +00:00
Sebastian Bazley d1431569ed Make repeat string in IPv4 expression more obvious
Remove non-capturing groups for clarity

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1444942 13f79535-47bb-0310-9956-ffa450edef68
2013-02-11 20:03:08 +00:00
Sebastian Bazley 4146dd8c58 HTTPCLIENT-1317 InetAddressUtils should handle IPv6 Addresses with Embedded IPv4 Addresses
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1444926 13f79535-47bb-0310-9956-ffa450edef68
2013-02-11 19:15:07 +00:00
Francois-Xavier Bonnet b95f92e1bc HTTPCLIENT-1321: DefaultHttpClient ignores cookie policy
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1444920 13f79535-47bb-0310-9956-ffa450edef68
2013-02-11 18:44:15 +00:00
Sebastian Bazley 7e081f0d5c More tests for IPV6 - show that IP with 8 zeroes is OK, but with 7 or 9 is not
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1444746 13f79535-47bb-0310-9956-ffa450edef68
2013-02-11 11:56:52 +00:00
Sebastian Bazley d9de7f7c96 Explicit boxing
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1444639 13f79535-47bb-0310-9956-ffa450edef68
2013-02-11 00:32:14 +00:00
Sebastian Bazley af4a7f171b Javadoc syntax
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1444636 13f79535-47bb-0310-9956-ffa450edef68
2013-02-11 00:26:30 +00:00
Oleg Kalnichevski 265f083625 HTTPCLIENT-1320: SSLSocketFactory#createSystemSSLContext causes UnrecoverableKeyException 'Password verification failed' when a truststore is specified with 'javax.net.ssl.trustStore' system property is used without a password
Contributed by Abe Backus <abraham at backus.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1444408 13f79535-47bb-0310-9956-ffa450edef68
2013-02-09 18:27:21 +00:00
Sebastian Bazley f90b20ce36 Unexpected Javadoc tag
The class is not generic

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1443287 13f79535-47bb-0310-9956-ffa450edef68
2013-02-07 00:20:20 +00:00
Sebastian Bazley 4464a658db HTTPCLIENT-1319 - add disabled tests
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1443286 13f79535-47bb-0310-9956-ffa450edef68
2013-02-07 00:17:31 +00:00
Sebastian Bazley cbb0c48021 Add some more test examples
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1443277 13f79535-47bb-0310-9956-ffa450edef68
2013-02-06 23:53:45 +00:00
Sebastian Bazley b6bfa8505f Trim trailing blank (oops)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1442835 13f79535-47bb-0310-9956-ffa450edef68
2013-02-06 02:18:53 +00:00
Sebastian Bazley d7afb22c13 [HTTPCLIENT-1316] Certificate verification rejects IPv6 addresses which are not String-equal.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1442829 13f79535-47bb-0310-9956-ffa450edef68
2013-02-06 01:41:58 +00:00
Oleg Kalnichevski 4a021ce33a Log 'Connection can be kept alive' debug message only if the connection is known be re-usable
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1442567 13f79535-47bb-0310-9956-ffa450edef68
2013-02-05 12:39:32 +00:00
Oleg Kalnichevski 3627984c9d PoolingClientConnectionManager does not use ClientConnectionOperator#createConnection() method to create new connections
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1442566 13f79535-47bb-0310-9956-ffa450edef68
2013-02-05 12:39:21 +00:00
Oleg Kalnichevski 5cd571a159 HTTPCLIENT-1307: Future based asynchronous request execution
Contributed by Jilles van Gurp <jilles at jillesvangurp.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1442152 13f79535-47bb-0310-9956-ffa450edef68
2013-02-04 15:28:49 +00:00
Oleg Kalnichevski 305357a488 Fixed parameter mixup in HttpClientParamConfig#getRequestConfig
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1442151 13f79535-47bb-0310-9956-ffa450edef68
2013-02-04 15:28:32 +00:00
Oleg Kalnichevski f6f1d7af49 HTTPCLIENT-1311: made sure the current thread is re-interrupted if InterruptedException is caught and re-thrown as a different exception; tweaked connection manager API related to interruptable operations
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1441414 13f79535-47bb-0310-9956-ffa450edef68
2013-02-01 12:06:33 +00:00
Oleg Kalnichevski 1f7b7a32af HTTPCLIENT-1312: Zero length content entities with a Content-Encoding header cause an I/O error when an attempt is made to consume such entity
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1440673 13f79535-47bb-0310-9956-ffa450edef68
2013-01-30 21:13:02 +00:00
Oleg Kalnichevski e37f99ccda HTTPCLIENT-1313: Fixed IllegalStateException in deprecated ThreadSafeClientConnManager
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1440520 13f79535-47bb-0310-9956-ffa450edef68
2013-01-30 16:59:20 +00:00
Oleg Kalnichevski 90fc40bbf2 Use InetSocketAddress instead of InetAddress in the HttpClientConnectionManager#connect method
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1440519 13f79535-47bb-0310-9956-ffa450edef68
2013-01-30 16:59:07 +00:00
Oleg Kalnichevski 549a45b2f4 HTTPCLIENT-1305: Use Base64 as a final instance variable
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1438566 13f79535-47bb-0310-9956-ffa450edef68
2013-01-25 15:55:56 +00:00
Oleg Kalnichevski 500434f256 HTTPCLIENT-1305: Ensure chunking is disabled when applying Base64 encoding
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1438495 13f79535-47bb-0310-9956-ffa450edef68
2013-01-25 13:19:23 +00:00
Gary D. Gregory a544aef29e Organize imports.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1437583 13f79535-47bb-0310-9956-ffa450edef68
2013-01-23 17:23:36 +00:00
Gary D. Gregory 79c1aa0b5d JUnit 3 -> 4: replace import of junit.framework.Assert with org.junit.Assert.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1437577 13f79535-47bb-0310-9956-ffa450edef68
2013-01-23 17:19:46 +00:00
Oleg Kalnichevski 696b6e117b Upgraded project version to 4.3-alpha2-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1435976 13f79535-47bb-0310-9956-ffa450edef68
2013-01-20 21:28:23 +00:00
Sebastian Bazley 0730d6c7c9 target cannot be null here otherwise the earlier invocation of target.getPort() would fail with NPE
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1435320 13f79535-47bb-0310-9956-ffa450edef68
2013-01-18 19:40:42 +00:00
Sebastian Bazley 5bdd456c8c Javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1435315 13f79535-47bb-0310-9956-ffa450edef68
2013-01-18 19:34:52 +00:00
Oleg Kalnichevski 2ea3298894 Fixed javadocs
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1434000 13f79535-47bb-0310-9956-ffa450edef68
2013-01-16 15:54:44 +00:00
Gary D. Gregory 3ebbcab3b4 Add final modifier to local variables.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1433815 13f79535-47bb-0310-9956-ffa450edef68
2013-01-16 03:27:44 +00:00
Oleg Kalnichevski 3d34035b17 Fixed style check violations (tabs introduced by a previous commit)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1433610 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 20:08:10 +00:00
Gary D. Gregory 276a9c4597 Add final modifier to method parameters.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1433569 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 18:29:58 +00:00
Gary D. Gregory 917145dbd3 Convert control statement bodies to block.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1433390 13f79535-47bb-0310-9956-ffa450edef68
2013-01-15 13:12:01 +00:00
Oleg Kalnichevski d4dc9e1ac7 Moved internal exec chain classes and interfaces
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432732 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 20:41:41 +00:00
Oleg Kalnichevski 19c10ca488 Fixed style check violations (tabs introduced by a previous commit)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432730 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 20:41:07 +00:00
Oleg Kalnichevski 6a8961cc29 Renamed ConnectionReleaseTriggerImpl to ConnectionHolder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432677 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 17:56:11 +00:00
Gary D. Gregory 3a073e8ed8 Add final modifier to private fields.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432552 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 04:49:33 +00:00
Gary D. Gregory 323adda52e Add missing '@Override' annotations.
Add missing '@Deprecated' annotations.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432551 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 04:46:54 +00:00
Gary D. Gregory 25d752996e Convert 'for' loops to enhanced 'for' loops.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432550 13f79535-47bb-0310-9956-ffa450edef68
2013-01-13 04:44:50 +00:00
Oleg Kalnichevski a97d088847 Minor tweaks in the connection management code
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432452 13f79535-47bb-0310-9956-ffa450edef68
2013-01-12 15:25:59 +00:00
Oleg Kalnichevski 4e50149ac6 Minor API tweaks; expanded ClientConfiguration example
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432030 13f79535-47bb-0310-9956-ffa450edef68
2013-01-11 13:11:48 +00:00
Karl Wright 4a9f0a6ebb Second fix for HTTPCLIENT-1296. Include Oleg's suggestions as to a better way to obtain a port from the non-existent target.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1431285 13f79535-47bb-0310-9956-ffa450edef68
2013-01-10 11:27:36 +00:00
Karl Wright a7984199d7 Fix for HTTPCLIENT-1296. Change where the virtual host is evaluated until after we figure out the target in the absence of a virtual host.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1431183 13f79535-47bb-0310-9956-ffa450edef68
2013-01-10 02:47:32 +00:00
Oleg Kalnichevski 40bf945d04 Small tweaks to MinimalHttpClient
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1430867 13f79535-47bb-0310-9956-ffa450edef68
2013-01-09 14:12:11 +00:00
Oleg Kalnichevski aa92e0e96d Integration tests for the minimal HttpClient
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1430866 13f79535-47bb-0310-9956-ffa450edef68
2013-01-09 14:05:38 +00:00
Oleg Kalnichevski 6ceddc02e0 HTTPCLIENT-1291: Absolute request URIs without an explicitly specified path are rewritten to have / path
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1430008 13f79535-47bb-0310-9956-ffa450edef68
2013-01-07 21:06:35 +00:00
Oleg Kalnichevski 4232febf63 Reworked proxy configuration; more test cases
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1429930 13f79535-47bb-0310-9956-ffa450edef68
2013-01-07 18:22:35 +00:00
Oleg Kalnichevski b15a62f70d Updated ClientWithResponseHandler example; added ClientConfiguration example; added overloaded constructors to a number of default impl classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1429548 13f79535-47bb-0310-9956-ffa450edef68
2013-01-06 16:13:33 +00:00
Oleg Kalnichevski 8155bab28d Added static #copy method to config classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1428925 13f79535-47bb-0310-9956-ffa450edef68
2013-01-04 15:22:30 +00:00
Oleg Kalnichevski d38d340a1e Fixed a problem introduced by the previous commit: abort lock needs to be created new when the object is cloned
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1427777 13f79535-47bb-0310-9956-ffa450edef68
2013-01-02 13:04:48 +00:00
Oleg Kalnichevski fbb5561603 HTTPCLIENT-1288: moved HttpExecutionAware implementation code to AbstractExecutionAwareRequest class
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1427723 13f79535-47bb-0310-9956-ffa450edef68
2013-01-02 10:12:59 +00:00
Oleg Kalnichevski c02e1b3f75 HTTPCLIENT-1287: DefaultUserTokenHandler#getUserToken to check if the connection is open prior to retrieving SSLSession.
Contributed by Noah Levitt <nlevitt at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1427541 13f79535-47bb-0310-9956-ffa450edef68
2013-01-01 19:28:20 +00:00
Oleg Kalnichevski 9ec0c13594 HTTPCLIENT-1286: Request URI rewriting is inconsistent - URI fragments are not removed from absolute request URIs.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1427482 13f79535-47bb-0310-9956-ffa450edef68
2013-01-01 17:26:08 +00:00
Oleg Kalnichevski de45d141cb HTTPCLIENT-1285: fixed inconsistent handling of default request config; added test cases
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1427178 13f79535-47bb-0310-9956-ffa450edef68
2012-12-31 17:04:50 +00:00
Oleg Kalnichevski c2dd3ccc44 HTTPCLIENT-1285: request configuration in the context to remain unchanged if not explicitly overridden by the request
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1426771 13f79535-47bb-0310-9956-ffa450edef68
2012-12-29 15:28:04 +00:00
Oleg Kalnichevski 712cafd1e9 Added method to create minimal HttpClient with a custom connection manager
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1426535 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 14:59:41 +00:00
Oleg Kalnichevski 1db3da376e tabs -> spaces; removed trailing whilespaces; updated stylecheck definitions
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1426529 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 14:48:57 +00:00
Oleg Kalnichevski 1c322eb843 Added minimal style checks: licence header, file length, illegal imports
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1426521 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 14:36:14 +00:00
Oleg Kalnichevski 9d3171f15e HTTPCLIENT-1253: RequestBuilder to support request parameters that can be transmitted either in the request body or in the request URI depending on composition of the request
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1426353 13f79535-47bb-0310-9956-ffa450edef68
2012-12-27 22:26:53 +00:00
Karl Wright 9c0a28cd6c Use flags comparable to those used by IE 9. Test on all settings of the LAN Manager Authentication Security Level policy. Part of HTTPCLIENT-1268.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1425330 13f79535-47bb-0310-9956-ffa450edef68
2012-12-22 18:26:38 +00:00
Oleg Kalnichevski 41e08bfa52 Added minimal HttpClient implementation (no redirects, auth, state management and proxy support)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1424934 13f79535-47bb-0310-9956-ffa450edef68
2012-12-21 14:34:26 +00:00
Oleg Kalnichevski e99b061a95 HTTPCLIENT-900: Don't enforce URI syntax for messages with an explicit target host
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1424591 13f79535-47bb-0310-9956-ffa450edef68
2012-12-20 17:05:07 +00:00
Oleg Kalnichevski e798d4947c HTTPCLIENT-1284: HttpClient incorrectly generates Host header when physical connection route differs from the host name specified in the request URI
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1424448 13f79535-47bb-0310-9956-ffa450edef68
2012-12-20 13:05:41 +00:00
Oleg Kalnichevski f492a000e7 Kerberos and SPNego auth schemes use incorrect authorization header name when authenticating with a proxy
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1424447 13f79535-47bb-0310-9956-ffa450edef68
2012-12-20 13:04:50 +00:00
Karl Wright b0090c516f Fix Type3 message assembly problem, part of HTTPCLIENT-1268.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1424351 13f79535-47bb-0310-9956-ffa450edef68
2012-12-20 07:14:03 +00:00
Oleg Kalnichevski b6d7989aae Authmatically shut down file system based cache storage instantiated by CachingHttpClientBuilder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423960 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 17:12:03 +00:00
Karl Wright ba065fca60 Use Locale.US instead of Locale.ROOT to make jdk 1.5 happy
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423842 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 12:32:26 +00:00
Karl Wright 093284e54a Fix for HTTPCLIENT-1283.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423832 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 11:34:58 +00:00
Oleg Kalnichevski 01a7e66d7b HTTPCLIENT-1281: GzipDecompressingEntity#getContent() to close wrapped entity's stream in case of an I/O error
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423807 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 09:46:31 +00:00
Oleg Kalnichevski d72e9b3ae7 Use Asserts to verify object state; use Args to verify method arguments
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423516 13f79535-47bb-0310-9956-ffa450edef68
2012-12-18 16:22:58 +00:00
Karl Wright b284816743 Another fix related to HTTPCLIENT-1268. Get flags for when to send NTLMv2 response correct.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423314 13f79535-47bb-0310-9956-ffa450edef68
2012-12-18 08:14:25 +00:00
Oleg Kalnichevski 2aa1fc1400 HTTPCLIENT-1279: Target host responding with status 407 (proxy authentication required) causes an NPE
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423172 13f79535-47bb-0310-9956-ffa450edef68
2012-12-17 21:51:42 +00:00
Oleg Kalnichevski 5c0cb57422 HTTPCLIENT-1281: GzipDecompressingEntity does not release InputStream when an IOException occurs while reading the Gzip header
Contributed by Francois-Xavier Bonnet <francois-xavier.bonnet at centraliens.net>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1422997 13f79535-47bb-0310-9956-ffa450edef68
2012-12-17 16:12:18 +00:00
Oleg Kalnichevski c82a5116c2 Make sure 'http.keepAlive' defaults to true
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1421835 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 12:54:50 +00:00
Oleg Kalnichevski bfbc573cbd Added methods to set SocketConfig and ConnectionConfig for PoolingHttpClientConnectionManager and HttpClientBuilder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1421309 13f79535-47bb-0310-9956-ffa450edef68
2012-12-13 14:22:28 +00:00
Oleg Kalnichevski 6425e97a02 HTTPCLIENT-1273: DecompressingHttpClient does not automatically consume response content in case of an i/o, HTTP or runtime exception thrown by the decompressing protocol interceptor leading to a potential connection leak
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1420613 13f79535-47bb-0310-9956-ffa450edef68
2012-12-12 10:41:20 +00:00
Oleg Kalnichevski f643326e9e Moved HttpClientBuilder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1420122 13f79535-47bb-0310-9956-ffa450edef68
2012-12-11 12:22:58 +00:00
Oleg Kalnichevski 034805c3af Added caching specific HttpClient builder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1420121 13f79535-47bb-0310-9956-ffa450edef68
2012-12-11 12:20:08 +00:00
Karl Wright c98900ebd8 Fix for HTTPCLIENT-1080. Comment out dead code.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1419348 13f79535-47bb-0310-9956-ffa450edef68
2012-12-10 11:28:44 +00:00
Karl Wright 460a604487 Fix for HTTPCLIENT-1268. Correct a buffer overrun and add additional tests designed to detect similar problems in the future.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1419343 13f79535-47bb-0310-9956-ffa450edef68
2012-12-10 11:16:29 +00:00
Oleg Kalnichevski fcd02a0a18 Ported CachingHttpClient to ClientExecChain API
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1418743 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 19:59:24 +00:00
Oleg Kalnichevski dd3d12f0d6 HTTPCLIENT-1263: BrowserCompatSpec: attribute values containing spaces or special characters should be enclosed with quotes marks for version 1 cookies
Contributed by Francois-Xavier Bonnet <francois-xavier.bonnet at centraliens.net>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1418654 13f79535-47bb-0310-9956-ffa450edef68
2012-12-08 12:12:12 +00:00
Gary D. Gregory cdaca60ad0 Use the 'maven.compile.source' property instead of a hard-wired version number.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1418304 13f79535-47bb-0310-9956-ffa450edef68
2012-12-07 13:28:03 +00:00
Oleg Kalnichevski 264d2038ea HTTPCLIENT-1266: NTLM engine refactoring and compatibility improvements.
Contributed by Karl Wright <DaddyWri at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1417384 13f79535-47bb-0310-9956-ffa450edef68
2012-12-05 12:31:20 +00:00
Oleg Kalnichevski 9b6aeffa80 Fixed binary compatiblity breakage
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1417377 13f79535-47bb-0310-9956-ffa450edef68
2012-12-05 12:17:39 +00:00
Oleg Kalnichevski c222ad9247 Made CookieSpecRegistry implement Lookup interface for compatibility with the new config API
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1416857 13f79535-47bb-0310-9956-ffa450edef68
2012-12-04 09:52:00 +00:00
Oleg Kalnichevski a901dbf14f Moved HttpRequestWrapper to public API package
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1416586 13f79535-47bb-0310-9956-ffa450edef68
2012-12-03 16:49:37 +00:00
Oleg Kalnichevski 03769ceecc Refactored execution proxy classes; entity enclosing requests are enhanced only when necessary
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1416177 13f79535-47bb-0310-9956-ffa450edef68
2012-12-02 14:03:52 +00:00
Gary D. Gregory f81dd8f31a The root project defines module the properties used by all the other modules.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1414748 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 15:17:17 +00:00
Oleg Kalnichevski 1487890a0d Had to make ClientExecChain and related classes public in order to make them accessible by the caching module
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1414683 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 13:47:28 +00:00
Oleg Kalnichevski f7cf9a22e1 Deprecated HttpParams and related classes in favor of new configuration API (fixed remaining deprecation warnings)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1414682 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 13:46:07 +00:00
Oleg Kalnichevski 73dc5eebfd Deprecated HttpParams and related classes in favor of new configuration API
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1414680 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 13:45:06 +00:00
Oleg Kalnichevski 1179458a52 DefaultClientConnectionFactory to use lenient HttpResponseParser implementation
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1414679 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 13:42:08 +00:00
Oleg Kalnichevski e2e564a1a1 Deprecated Scheme, SchemeRegistry and related classes in favor of generic Registry; connection managers to use new ConnectionSocketFactory API; rewrote default HttpRoutePlanner implementations
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1414678 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 13:39:31 +00:00
Oleg Kalnichevski 8901aed494 Deprecated AuthSchemeRegistry and CookieSpecRegistry in favor of generic Registry
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1414676 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 13:37:32 +00:00
Oleg Kalnichevski 2c1d3f797a Updated new connection managers to use SocketClientConnectionImpl instead of deprecated DefaultClientConnection
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1414675 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 13:36:41 +00:00
Oleg Kalnichevski 4dc5821acb Configuration API changes: deprecated SchemeSocketFactory and SchemeLayeredSocketFactory in favor of ConnectionSocketFactory and LayeredConnectionSocketFactory interfaces (new API no longer relies on HttpParams)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1414674 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 13:35:46 +00:00
Oleg Kalnichevski 697556b9b0 DefaultClientConnection deprecated in favor of package private ClientConnectionImpl
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1414672 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 13:35:01 +00:00
Oleg Kalnichevski 8dccdcc7c8 Refactored local HTTP server for integration tests
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1414671 13f79535-47bb-0310-9956-ffa450edef68
2012-11-28 13:34:18 +00:00
Oleg Kalnichevski 6e14fc146a Fixed CN extraction from DN of X500 principal
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1411702 13f79535-47bb-0310-9956-ffa450edef68
2012-11-20 15:37:02 +00:00
Gary D. Gregory 20de472dd7 Use Java 5 enhanced 'for' loops.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1407076 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 13:46:24 +00:00
Sebastian Bazley 7201c0c216 Unnecessary null check.
Move setup of default value to where variable is declared

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406892 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 01:52:14 +00:00
Sebastian Bazley df203b7dcd Explicit boxing in main classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406891 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 01:50:59 +00:00
Sebastian Bazley b28ec1bf3d Fix some obvious boxing in test classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406884 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 01:32:46 +00:00
Sebastian Bazley 5a436e52c3 Explicit boxing in main classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406882 13f79535-47bb-0310-9956-ffa450edef68
2012-11-08 01:26:46 +00:00
Sebastian Bazley c2e94980e1 Formatter instances need to be closed
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406436 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 03:24:08 +00:00
Sebastian Bazley 73054957f8 Unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406424 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 02:47:01 +00:00
Sebastian Bazley 838a106e90 Redundant semis
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406423 13f79535-47bb-0310-9956-ffa450edef68
2012-11-07 02:46:26 +00:00
Gary D. Gregory fdfd59534c Add missing @Override and @Deprecated annotations.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406359 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 21:52:35 +00:00
Oleg Kalnichevski 6293899e61 HTTPCLIENT-1254: Redirect with underscore in hostname causes ProtocolException
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406286 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 19:53:01 +00:00
Oleg Kalnichevski b930227f90 HTTPCLIENT-1255: AbstractVerifier incorrectly parses certificate CN containing wildcard
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406217 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 16:49:49 +00:00
Oleg Kalnichevski 44f798c9bf (Hopefully) a better regex for IPv4 address format
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1406216 13f79535-47bb-0310-9956-ffa450edef68
2012-11-06 16:49:24 +00:00
Oleg Kalnichevski d550a62fe3 Added test cases for EofSensorInputStream, ConnectionReleaseTriggerImpl, RequestEntityWrapper, ResponseEntityWrapper
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1405557 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 15:27:45 +00:00
Oleg Kalnichevski 87a46db5c2 Added test cases for HttpClientUtils
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1405511 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 07:41:57 +00:00
Oleg Kalnichevski e9ca02ccff Replaced HttpResponseWrapper with a dynamic proxy
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1405510 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 07:41:01 +00:00
Oleg Kalnichevski 0155befe4a HttpClient resource management API made compatible with Java 7 'try with resources': HttpClientBuilder to return CloseableHttpClient and CloseableHttpClient to return CloseableHttpResponse objects which implement java.io.Closeable; made ClientChainExec interface and related classes package private
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1405509 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 07:40:00 +00:00
Oleg Kalnichevski 3c26d6ff41 Cleaned up HttpAuthenticator unit tests
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1405508 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 07:38:43 +00:00
Oleg Kalnichevski 78856ca1b1 Connection management API redesign: deprecated ClientConnectionManager, ManagedClientConnection, OperatedClientConnection and ClientConnectionOperator in favor of a simpler HttpClientConnectionManager interface. The new API has a much smaller footprint and no longer supports the concept of managed or operated connections. Internal connection mangement logic is no longer exposed to the consumer
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1405507 13f79535-47bb-0310-9956-ffa450edef68
2012-11-04 07:37:50 +00:00
Oleg Kalnichevski 84d4b9e2ac Refactored HttpMime ContentBody classes to use ContentType at construction time; added MultipartEntityBuilder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1398094 13f79535-47bb-0310-9956-ffa450edef68
2012-10-14 14:55:11 +00:00
Oleg Kalnichevski ea62c7fb5e Added constructors to RequestBuilder; added to EntityBuilder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1397679 13f79535-47bb-0310-9956-ffa450edef68
2012-10-12 18:44:13 +00:00
Oleg Kalnichevski 53d1180530 HTTPCLIENT-1248: make a copy of the original request when creating a redirect request for status 307
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1397085 13f79535-47bb-0310-9956-ffa450edef68
2012-10-11 14:36:52 +00:00
Oleg Kalnichevski 46aca9def4 HTTPCLIENT-1248: Default and lax redirect strategies should not convert requests redirected with 307 status to GET method
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1396793 13f79535-47bb-0310-9956-ffa450edef68
2012-10-10 20:51:30 +00:00
Oleg Kalnichevski 15301ffbba CloneUtils cleanup
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1396792 13f79535-47bb-0310-9956-ffa450edef68
2012-10-10 20:51:06 +00:00
Oleg Kalnichevski dedc1575c5 HTTPCLIENT-1215: BasicAuthCache does not take default ports into consideration when looking up cached authentication details by HttpHost key
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1396748 13f79535-47bb-0310-9956-ffa450edef68
2012-10-10 19:14:10 +00:00
Oleg Kalnichevski 05b0a00f9c HTTPCLIENT-1247: DateUtils.PATTERN_RFC1036 contains an extra 'E'
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1396527 13f79535-47bb-0310-9956-ffa450edef68
2012-10-10 09:51:41 +00:00
Oleg Kalnichevski 639cc93c56 HTTPCLIENT-1241: (regression) Preemptive BASIC authentication failure should be considered final and no further attempts to re-authenticate using the same credentials should be made
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1393991 13f79535-47bb-0310-9956-ffa450edef68
2012-10-04 11:19:59 +00:00
Oleg Kalnichevski aa82dc28ee HTTPCLIENT-1239: Support for overridable DefaultHttpServerConnection in LocalTestServer
Contributed by Okke Harsta <oharsta at apache.org>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1393540 13f79535-47bb-0310-9956-ffa450edef68
2012-10-03 15:28:08 +00:00
Oleg Kalnichevski c9829f5ac0 HTTPCLIENT-1237: PoolingClientConnectionManager should only update pool expiry for resuable connections
Contributed by Alf Høgemark <alf at i100.no>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1390317 13f79535-47bb-0310-9956-ffa450edef68
2012-09-26 08:15:00 +00:00
Oleg Kalnichevski 8e452a0159 HTTPCLIENT-1236: Change exception message when timeout getting connection from pool
Contributed by Alf Høgemark <alf at i100.no>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1390316 13f79535-47bb-0310-9956-ffa450edef68
2012-09-26 08:14:18 +00:00
Oleg Kalnichevski 7985a45e97 HTTPCLIENT-1231, HTTPCLIENT-1232: javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1383865 13f79535-47bb-0310-9956-ffa450edef68
2012-09-12 09:28:12 +00:00
Oleg Kalnichevski ee5bc9b600 HTTPCLIENT-1230: improved javadocs of BasicClientConnectionManager
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1382450 13f79535-47bb-0310-9956-ffa450edef68
2012-09-09 11:07:08 +00:00
Oleg Kalnichevski 4d38bede89 HTTPCLIENT-1229: Fixed NPE in BasicClientConnectionManager that can be triggered by releasing connection after the connection manager has already been shut down
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1382442 13f79535-47bb-0310-9956-ffa450edef68
2012-09-09 10:41:41 +00:00
Oleg Kalnichevski e42006ea27 SchemeRegistry instance set in the execution context takes precedence over the default one (related to HTTPASYNC-25)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1382350 13f79535-47bb-0310-9956-ffa450edef68
2012-09-08 19:56:35 +00:00
Oleg Kalnichevski 90b8646309 HTTPCLIENT-1227: Date parsing in DateUtils made more efficient
Contributed by Patrick Linskey <pcl at apache.org>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1378935 13f79535-47bb-0310-9956-ffa450edef68
2012-08-30 13:35:05 +00:00
Oleg Kalnichevski e29551b32d HTTPCLIENT-1224: (regression) NTLM auth not retried after a redirect over a non-persistent connection (merged from 4.2.x branch)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1376852 13f79535-47bb-0310-9956-ffa450edef68
2012-08-24 08:05:44 +00:00
Oleg Kalnichevski 320fae656f Replaced HttpRoutedConnection with HttpSSLConnection interface
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1371171 13f79535-47bb-0310-9956-ffa450edef68
2012-08-09 11:42:19 +00:00
Oleg Kalnichevski 2fa4b6b854 Merged decorator-refactoring branch
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1370953 13f79535-47bb-0310-9956-ffa450edef68
2012-08-08 20:35:13 +00:00
Oleg Kalnichevski 8ef44683ba Upgraded project version to 4.3-alpha1-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1369849 13f79535-47bb-0310-9956-ffa450edef68
2012-08-06 13:59:21 +00:00
Gary D. Gregory de80f40ae9 [HTTPCLIENT-1220] Add DecompressingHttpClient#getHttpClient().
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1369844 13f79535-47bb-0310-9956-ffa450edef68
2012-08-06 13:42:50 +00:00
Gary D. Gregory ccdebd9384 [HTTPCLIENT-1221] Add DecompressingHttpClient 0-arg constructor using the DefaultHttpClient.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1369841 13f79535-47bb-0310-9956-ffa450edef68
2012-08-06 13:32:35 +00:00
Oleg Kalnichevski bc79591574 HTTPCLIENT-1217: AutoRetryHttpClient does not release connection used by the previous response when request is retried
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1364406 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 19:38:40 +00:00
Oleg Kalnichevski 898b33ac21 HTTPCLIENT-1216: Added method to force clean thread-local used by DateUtils
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1364276 13f79535-47bb-0310-9956-ffa450edef68
2012-07-22 12:20:27 +00:00
Oleg Kalnichevski ba18ddbaca Make custom query component and form parameters mutually exclusive
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1359140 13f79535-47bb-0310-9956-ffa450edef68
2012-07-09 13:07:10 +00:00
Oleg Kalnichevski d545fdd180 Deprecated #setQuery method; added method to set arbitrary custom query component
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1356775 13f79535-47bb-0310-9956-ffa450edef68
2012-07-03 15:02:44 +00:00
Oleg Kalnichevski b7f85c1af7 Upgraded project version to 4.2.2-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1356623 13f79535-47bb-0310-9956-ffa450edef68
2012-07-03 08:52:49 +00:00
Oleg Kalnichevski 8a19a0e2b9 Escape non-ASCII chars using \uxxxx notation
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1355754 13f79535-47bb-0310-9956-ffa450edef68
2012-06-30 16:01:56 +00:00
Oleg Kalnichevski 2706c4b463 Added Quick Start sources; fixed release notes header
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1355393 13f79535-47bb-0310-9956-ffa450edef68
2012-06-29 13:59:57 +00:00
Sebastian Bazley 413c41202b HTTPCLIENT-1195 - URIBuilder-created query strings are double-escaped
Add [ ] to reserved chars
Use separate safe sets for userinfo and fragment

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1354288 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 23:23:21 +00:00
Sebastian Bazley caade0db95 Add test to check that builder behaves the same as URI
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1354115 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 17:17:05 +00:00
Sebastian Bazley 518e6da29d Change form encoded escaping to agree with previous release and browsers
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1354111 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 17:05:00 +00:00
Sebastian Bazley f32198b1fb Javadoc
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1354053 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 15:10:16 +00:00
Sebastian Bazley 54f6fbf596 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1354046 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 14:57:30 +00:00
Sebastian Bazley 4efc8af634 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353782 13f79535-47bb-0310-9956-ffa450edef68
2012-06-26 00:25:44 +00:00
Sebastian Bazley 70a217c4d6 Add tests for charset String version of parse
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353699 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 18:58:17 +00:00
Sebastian Bazley 8a45b8bc44 Rename private methods to make their function clearer
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353698 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 18:57:26 +00:00
Sebastian Bazley 35d3f7ec77 Simplify nested if
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353697 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 18:33:21 +00:00
Oleg Kalnichevski 158ca6f4a0 HTTPCLIENT-1195: minor optimization
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353678 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 17:35:34 +00:00
Sebastian Bazley 3d3457f458 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353642 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 16:31:24 +00:00
Oleg Kalnichevski faef016a2c HTTPCLIENT-1201: Quick start doc improvements
Contributed by miles zarathustra <albert.bradley at thomsonreuters.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353605 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 15:43:28 +00:00
Oleg Kalnichevski 2e9220e97b HTTPCLIENT-1195: blanks in the query part of request URIs to be encoded as '+'
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353593 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 15:28:41 +00:00
Sebastian Bazley 9dcf1ebd67 HTTPCLIENT-1195 - URIBuilder-created query strings are double-escaped
Move normalization from URIUtils to URIBuilder so encodedPath is not dropped
Oops - don't do double normalisation

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353446 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 09:56:22 +00:00
Sebastian Bazley 77ba1e5e0d HTTPCLIENT-1195 - URIBuilder-created query strings are double-escaped
Move normalization from URIUtils to URIBuilder so encodedPath is not dropped

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353445 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 09:53:07 +00:00
Sebastian Bazley b4d78c4d69 Unused import
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353369 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 00:59:31 +00:00
Sebastian Bazley 0bef1af005 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353368 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 00:58:19 +00:00
Sebastian Bazley 9fe5039310 Add String version of format test
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353366 13f79535-47bb-0310-9956-ffa450edef68
2012-06-25 00:07:56 +00:00
Sebastian Bazley 94f76c998f Eclipse says: contentType cannot be null here
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353365 13f79535-47bb-0310-9956-ffa450edef68
2012-06-24 23:56:29 +00:00
Sebastian Bazley 21471f8486 Add tests for port and scheme copy
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353363 13f79535-47bb-0310-9956-ffa450edef68
2012-06-24 23:48:49 +00:00
Sebastian Bazley 09527b3f74 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353361 13f79535-47bb-0310-9956-ffa450edef68
2012-06-24 23:31:19 +00:00
Sebastian Bazley 1505d6dca6 Fix up query test cases so they are actually queries
Add extra encoded & to path tests

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353266 13f79535-47bb-0310-9956-ffa450edef68
2012-06-24 13:58:11 +00:00
Sebastian Bazley 9db01c3144 HTTPCLIENT-1195 - URIBuilder-created query strings are double-escaped
Ensure escapedQuery is not unescaped - fixes failed test testEscapedSpaceInQueryAbsolute

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353253 13f79535-47bb-0310-9956-ffa450edef68
2012-06-24 12:26:45 +00:00
Sebastian Bazley 3e1493d94c Restore from TestUriEscapes.java@1349668
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353122 13f79535-47bb-0310-9956-ffa450edef68
2012-06-23 12:43:31 +00:00
Oleg Kalnichevski 1863df4df9 HTTPCLIENT-1210: HttpRequestBase#toString() method
Contributed by Gary D. Gregory <garydgregory at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1353104 13f79535-47bb-0310-9956-ffa450edef68
2012-06-23 09:53:11 +00:00
Oleg Kalnichevski da16fdc973 HTTPCLIENT-1209: Redirect URIs are now normalized
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1352845 13f79535-47bb-0310-9956-ffa450edef68
2012-06-22 11:05:10 +00:00
Oleg Kalnichevski ddde53711c Remove user info from request URI when rewriting
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1351478 13f79535-47bb-0310-9956-ffa450edef68
2012-06-18 20:27:59 +00:00
Oleg Kalnichevski 2e3efc7d27 HTTPCLIENT-1195: URI rewrite methods in URIUtils now use URIBuilder internally
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1349669 13f79535-47bb-0310-9956-ffa450edef68
2012-06-13 07:56:35 +00:00
Oleg Kalnichevski 637f046eb1 HTTPCLIENT-1195: URIBuilder now uses single argument URI constructor to create URI instance
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1349530 13f79535-47bb-0310-9956-ffa450edef68
2012-06-12 21:11:47 +00:00
Oleg Kalnichevski e8bc96c549 Request URI does not always get updated
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1347596 13f79535-47bb-0310-9956-ffa450edef68
2012-06-07 12:59:37 +00:00
Jonathan Moore 2451e5dec7 HTTPCLIENT-1199: Added unit test to verify Oleg's recent fix.
We still do not properly handle the redirect case, however.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1345217 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 14:53:17 +00:00
Oleg Kalnichevski f785d0ed7a HTTPCLIENT-1199: fixed request wrapping in DecompressingHttpClient
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1345166 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 13:26:53 +00:00
Jonathan Moore 2514a05895 Compiler warning cleanup: unused imports and unneeded @SuppressWarnings.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1344851 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 18:25:49 +00:00
Oleg Kalnichevski a64a3e252e HTTPCLIENT-1200: DecompressingHttpClient fails to generate correct HttpHost context attribute
Contributed by Guillaume Castagnino <casta+jira at xwing.info>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1344743 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 14:28:38 +00:00
Oleg Kalnichevski 5300548a56 HTTPCLIENT-1192: URIBuilder encodes query parameters twice
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1343355 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 18:29:50 +00:00
Oleg Kalnichevski 0da3e7251e HTTPCLIENT-1193: Fixed regression in the route tracking logic of the default connection manager causing cross-site redirect failures.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1342677 13f79535-47bb-0310-9956-ffa450edef68
2012-05-25 15:13:43 +00:00
Oleg Kalnichevski 570aa9fa37 Upgraded project version to 4.2.1-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1340700 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 12:51:21 +00:00
Oleg Kalnichevski 91250b2a89 Reverted change to the public const value
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1339141 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 12:41:45 +00:00
Oleg Kalnichevski ae4ebcc630 Added missing AL header
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1339140 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 12:41:02 +00:00
Oleg Kalnichevski 2e2f6c2e04 HTTPCLIENT-1191: PATCH HTTP method
Contributed by Alin Vasile <alinachegalati at yahoo dot com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1339134 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 12:21:24 +00:00
Oleg Kalnichevski c850967c01 Javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1337904 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 14:57:27 +00:00
Oleg Kalnichevski 561a7d7405 Reverted to using basic connection manager per default
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1337903 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 14:57:07 +00:00
Oleg Kalnichevski 7a207ae475 Removed code deprecated in release 4.0
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1337893 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 14:11:39 +00:00
Oleg Kalnichevski a8d2e5e5fa Added release version to deprecation annotations; removed references to deprecated methods / classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1335088 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 16:06:11 +00:00
Oleg Kalnichevski aa412a29b9 Deprecated DefaultResponseParser in favor of DefaultHttpResponseParser
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1334646 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 14:41:38 +00:00
Oleg Kalnichevski bfe3b7201f Added getters to URIBuilder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1334634 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 14:17:01 +00:00
Oleg Kalnichevski 6920b38823 UrlEncodedFormEntity constructors added in 4.2 no longer throw UnsupportedEncodingException
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1334630 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 13:58:20 +00:00
Oleg Kalnichevski 93296a4779 Upgraded to HttpCore 4.2; Fixed compile errors caused by API breakage (HTTPCLIENT-1189)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1334436 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 15:53:45 +00:00
Oleg Kalnichevski 63d06f06cd HTTPCLIENT-1186: State of newly created connections in the connection pool is not always correctly updated potentially allowing those connections to be leased to users with a different security context
Contributed by Ralf Pöhlmann <rpn at methodpark.de>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1329811 13f79535-47bb-0310-9956-ffa450edef68
2012-04-24 15:55:07 +00:00
Oleg Kalnichevski 9366926296 Renamed CompressionDecorator to DecompressingHttpClient
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311967 13f79535-47bb-0310-9956-ffa450edef68
2012-04-10 20:19:20 +00:00
Oleg Kalnichevski 26241e51e2 HTTPCLIENT-1180: Fixed NPE in ClientGZipContentCompression sample
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311952 13f79535-47bb-0310-9956-ffa450edef68
2012-04-10 19:36:49 +00:00
Oleg Kalnichevski a9c95e057f HTTPCLIENT-1182: constructor to org.apache.http.conn.ssl.SSLSocketFactory to allow for directly wrapping a javax.net.ssl.SSLSocketFactory socketfactory
Contributed by Mark Claassen <mclaassen at ocie.net>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311941 13f79535-47bb-0310-9956-ffa450edef68
2012-04-10 19:22:40 +00:00
Oleg Kalnichevski db9f011a83 SSLSocketFactory to use javax.net.ssl.SSLSocketFactory#createSocket() instead of new Socket()
Contributed by Mark Claassen <mac01at donnell.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311409 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 20:10:18 +00:00
Oleg Kalnichevski be6347aef0 HTTPCLIENT-1177: always remove fragments from request URIs
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311382 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 19:18:35 +00:00
Oleg Kalnichevski 0cea739a38 Removed references to deprecated API
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311381 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 19:17:51 +00:00
Oleg Kalnichevski d544026bee BasicManagedEntity#streamClosed no longer propagates SocketException if the underlying connection has been shut down
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1307766 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 11:16:45 +00:00
Oleg Kalnichevski 218edab9fd Un-deprecated #parse method that takes Scanner as a parameter
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1302482 13f79535-47bb-0310-9956-ffa450edef68
2012-03-19 14:47:44 +00:00
Oleg Kalnichevski 5e0e2efe13 Optimized URLEncodedUtils#parse(HttpEntity) method
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1302360 13f79535-47bb-0310-9956-ffa450edef68
2012-03-19 10:33:16 +00:00
Jonathan Moore 3f99045e4f HTTPCLIENT-1164: If we uncompress an entity on-the-fly, we should
also remove its Content-MD5 header, as it will likely no longer be
accurate, and an upstream consumer may incorrectly reject the
response on that basis. This way the decorator preserves semantic
transparency.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1301572 13f79535-47bb-0310-9956-ffa450edef68
2012-03-16 15:01:27 +00:00
Jonathan Moore 54c7e992fb HTTPCLIENT-1164: Implemented a new CompressionDecorator aimed at replacing
the ContentEncodingHttpClient. This reuses the same request/response
interceptors with some minor additions to make the resulting response
semantically consistent (i.e. if a response is uncompressed, we mark the
entity as having an unknown length and remove the Content-Length header
before passing the response upstream). This allows the CompressionDecorator
and CachingHttpClient to be wired around a DefaultHttpClient in either order
and still get cache hits, depending on whether you want to cache compressed
or uncompressed bodies.

Minor change to ResponseContentEncoding to set a context variable that the
uncompression was applied. Only other change was to deprecate the
ContentEncodingHttpClient.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1301090 13f79535-47bb-0310-9956-ffa450edef68
2012-03-15 17:02:07 +00:00
Oleg Kalnichevski cef44fa283 Better SSL initialization for fluent Executor
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1299041 13f79535-47bb-0310-9956-ffa450edef68
2012-03-09 20:42:32 +00:00
Oleg Kalnichevski a32899e446 ClientPNames.VIRTUAL_HOST has no effect if set at the client level
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1296612 13f79535-47bb-0310-9956-ffa450edef68
2012-03-03 12:28:59 +00:00
Oleg Kalnichevski b90f31138c Fixed broken test case
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1294612 13f79535-47bb-0310-9956-ffa450edef68
2012-02-28 12:16:20 +00:00
Oleg Kalnichevski 3d2b0023fe It is legal for AuthScheme to be null
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1294348 13f79535-47bb-0310-9956-ffa450edef68
2012-02-27 21:44:50 +00:00
Oleg Kalnichevski 647e4dc314 HTTPCLIENT-1166: more tolerant parsing logic for malformed uris with invalid authority part
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1244105 13f79535-47bb-0310-9956-ffa450edef68
2012-02-14 16:12:02 +00:00
Oleg Kalnichevski d87d45a618 HTTPCLIENT-1166: added more tests for URIUtils#extractHost
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1243989 13f79535-47bb-0310-9956-ffa450edef68
2012-02-14 15:24:18 +00:00
Oleg Kalnichevski eac4ae43a7 Fixed problem with the system SSL context initialization (seems to affect Windows only)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1243661 13f79535-47bb-0310-9956-ffa450edef68
2012-02-13 19:19:35 +00:00
Oleg Kalnichevski d969fe8774 HTTPCLIENT-1162: do not override 'Accept-Encoding' header if already present
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1242782 13f79535-47bb-0310-9956-ffa450edef68
2012-02-10 14:14:30 +00:00
Oleg Kalnichevski 747593abb7 Upgraded project version to 4.2-beta2-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1242454 13f79535-47bb-0310-9956-ffa450edef68
2012-02-09 18:40:08 +00:00
Sebastian Bazley ca66db5ade Remove svn:executable prop
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1241167 13f79535-47bb-0310-9956-ffa450edef68
2012-02-06 20:40:12 +00:00
Oleg Kalnichevski 39117086b3 HTTPCLIENT-1160: Deprecated LayeredSchemeSocketFactory in favor of SchemeLayeredSocketFactory whose #createLayeredSocket() method takes HttpParams as an additional parameter
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1240721 13f79535-47bb-0310-9956-ffa450edef68
2012-02-05 13:18:02 +00:00
Oleg Kalnichevski 24b8a78846 Upgraded to HttpCore 4.2-beta1
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1239223 13f79535-47bb-0310-9956-ffa450edef68
2012-02-01 17:36:32 +00:00
Oleg Kalnichevski 64e56ef29c Added an option to initalize BASIC and DIGEST schemes in a particular challenge state
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1235752 13f79535-47bb-0310-9956-ffa450edef68
2012-01-25 14:17:37 +00:00
Oleg Kalnichevski 67d45c0d06 Updated Kerberos example
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1235751 13f79535-47bb-0310-9956-ffa450edef68
2012-01-25 14:16:29 +00:00
Oleg Kalnichevski 9867254c97 HTTPCLIENT-1156: Refactored NegotiateScheme into separate SPNegoScheme and KerberosScheme implementations; deprecated NegotiateScheme and related classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1233319 13f79535-47bb-0310-9956-ffa450edef68
2012-01-19 12:33:51 +00:00
Oleg Kalnichevski 74e1be5ca8 HTTPCLIENT-1159: HttpClientUtils - helper methods to release resources held by HttpClient / HttpResponse after use
Contributed by Karthik K <oss.akk at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1233307 13f79535-47bb-0310-9956-ffa450edef68
2012-01-19 12:15:48 +00:00
Oleg Kalnichevski fcf77abb6c HTTPCLIENT-1158: fixed typo
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1232915 13f79535-47bb-0310-9956-ffa450edef68
2012-01-18 14:46:25 +00:00
Oleg Kalnichevski 3b8726022b Added convenience #create methods to UrlEncodedFormEntity
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1231075 13f79535-47bb-0310-9956-ffa450edef68
2012-01-13 14:05:24 +00:00
Oleg Kalnichevski 46bcf3acf7 Replaced deprecated method calls
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1228888 13f79535-47bb-0310-9956-ffa450edef68
2012-01-08 16:34:06 +00:00
Oleg Kalnichevski 8f767628cf HTTPCLIENT-1155: CachingHttpClient fails to ensure that the response content gets fully consumed when using a ResponseHandler, which can potentially lead to connection leaks
Contributed by James Miller <jamesmiller01 at gmail dot com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1222845 13f79535-47bb-0310-9956-ffa450edef68
2011-12-23 20:59:54 +00:00
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