Commit Graph

638 Commits

Author SHA1 Message Date
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