Commit Graph

1812 Commits

Author SHA1 Message Date
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 d695c0e8b6 Updated multipart POST example
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1426534 13f79535-47bb-0310-9956-ffa450edef68
2012-12-28 14:59:30 +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 38e6a997fc HTTPCLIENT-1250: Allow query string to be ignored when determining cacheability for HTTP 1.0 responses
Contributed by Don Brown <mrdon at twdata.org>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1424589 13f79535-47bb-0310-9956-ffa450edef68
2012-12-20 16:56:41 +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 877970d7d8 Use Asserts to verify object state (follow-up)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423806 13f79535-47bb-0310-9956-ffa450edef68
2012-12-19 09:45:50 +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 12d11324c0 HTTPCLIENT-1280: CachingExec catches SocketTimeoutException silently and closes the backend InputStream
Contributed by Francois-Xavier Bonnet <francois-xavier.bonnet at centraliens.net>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1423024 13f79535-47bb-0310-9956-ffa450edef68
2012-12-17 17:11:36 +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 a92a196de2 HTTPCLIENT-1277: Caching client sends a 304 to an unconditional request.
Contributed by Francois-Xavier Bonnet <francois-xavier.bonnet at centraliens.net>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1421977 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 17:02:46 +00:00
Karl Wright fc91b38a25 Update release notes for HTTPCLIENT-1278.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1421889 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 14:27:22 +00:00
Karl Wright d04288a5e5 Update NTLM documentation.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1421863 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 13:53:44 +00:00
Oleg Kalnichevski a273929a9b Follow-up to HTTPCLIENT-1276
Contributed by Francois-Xavier Bonnet <francois-xavier.bonnet at centraliens.net>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1421844 13f79535-47bb-0310-9956-ffa450edef68
2012-12-14 13:24:46 +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 1779158a4f HTTPCLIENT-1276: cache update on a 304 response causes NPE
Contributed by Francois-Xavier Bonnet <francois-xavier.bonnet at centraliens.net>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1421330 13f79535-47bb-0310-9956-ffa450edef68
2012-12-13 15:08:01 +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 278e06df47 Ensure backend response is correctly closed in case of a HTTP, i/o or runtime error
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1420391 13f79535-47bb-0310-9956-ffa450edef68
2012-12-11 20:40:27 +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
Oleg Kalnichevski b257aeec70 Added cache specific HttpContext adaptor
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1419448 13f79535-47bb-0310-9956-ffa450edef68
2012-12-10 13:40:25 +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
Gary D. Gregory 168a1d6e75 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@1418300 13f79535-47bb-0310-9956-ffa450edef68
2012-12-07 13:25:48 +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 9aea057953 Ported internal caching classes to the new execution chain API
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1417343 13f79535-47bb-0310-9956-ffa450edef68
2012-12-05 10:34:46 +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 0edf06281f Made CacheConfig consistent with the new config API
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1416582 13f79535-47bb-0310-9956-ffa450edef68
2012-12-03 16:34:27 +00:00
Oleg Kalnichevski c9ca7b9987 Fixed OSGi metadata causing build breakage
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1416183 13f79535-47bb-0310-9956-ffa450edef68
2012-12-02 14:27:50 +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