Commit Graph

2860 Commits

Author SHA1 Message Date
Oleg Kalnichevski e883fbb376 Fixed deprecation warnings
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1666566 13f79535-47bb-0310-9956-ffa450edef68
2015-03-13 20:20:11 +00:00
Oleg Kalnichevski a4436e12ca Provide convenience functions for constructing the default cookie spec registry and to build on top of the default entries.
Use them to construct the default registry from HttpClientBuilder when no cookie spec registry has been provided.

This allows clients to easily add their own CookieSpecProviders without having to duplicate the list of defaults.

Contributed by byattj <byattj at lmax.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1666565 13f79535-47bb-0310-9956-ffa450edef68
2015-03-13 20:19:54 +00:00
Oleg Kalnichevski d85679d2a1 HTTPCLIENT-1628: Auth cache can fail when domain name contains uppercase characters
Contributed by Dennis Ju <dejuknow at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1666010 13f79535-47bb-0310-9956-ffa450edef68
2015-03-11 20:54:11 +00:00
Oleg Kalnichevski f1e0f669f1 Test cases for AuthScope
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1665996 13f79535-47bb-0310-9956-ffa450edef68
2015-03-11 20:28:47 +00:00
Oleg Kalnichevski 2220d106c1 HTTPCLIENT-1631: IPv4 addresses parser accepts addresses that starts with zero
Contributed by Maxim Kirilov <kir.maxim at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1665995 13f79535-47bb-0310-9956-ffa450edef68
2015-03-11 20:28:36 +00:00
Oleg Kalnichevski a319a25f4e HTTPCLIENT-1627: RequestConfig#toString() produces unbalanced text
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1665994 13f79535-47bb-0310-9956-ffa450edef68
2015-03-11 20:27:17 +00:00
Michael Osipov 6f70eca170 HTTPCLIENT-1622: Name of HttpClientBuilder#setSslcontext inconsistent with the rest of SSL-related methods
Method names are now uniformly SSLContext, variable names in camelcase.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1663155 13f79535-47bb-0310-9956-ffa450edef68
2015-03-01 20:11:00 +00:00
Michael Osipov 542ccae502 HTTPCLIENT-1621: Possible NPE/incorrect type in HttpClientBuilder#evictIdleConnections
Method has been deprecated and a new one has been added with a simple type. Old method merely calls the new one now.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1663151 13f79535-47bb-0310-9956-ffa450edef68
2015-03-01 19:34:58 +00:00
Oleg Kalnichevski d1da745d03 Deprecated misspelled method
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1662809 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 20:26:09 +00:00
Oleg Kalnichevski f798204f68 Fixed style-check violations
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1662808 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 20:25:59 +00:00
Oleg Kalnichevski ed79acbef0 adding default contructor to RequestConfig to being able to inject it with new CDI specification
Contributed by Nykolas Lima <nykolas.lima at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1662807 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 20:13:38 +00:00
Michael Osipov fc250e5616 HTTPCLIENT-1623: Several files still refer to Java 1.5
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1662569 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 20:59:56 +00:00
Oleg Kalnichevski a0b31445af HTTPCLIENT-1613: support of private domains in Mozilla Public Suffix List
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1662492 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 16:36:00 +00:00
Oleg Kalnichevski 5927ed1966 Upgraded project version to 4.5-alpha1-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1662491 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 16:35:41 +00:00
Oleg Kalnichevski 95754d776c HTTPCLIENT-1244: convert unit tests for cache module to use Mockito
Contributed by Joseph Walton <joe at kafsemo dot org>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1661658 13f79535-47bb-0310-9956-ffa450edef68
2015-02-23 12:42:47 +00:00
Oleg Kalnichevski d6b8a525b9 HTTPCLIENT-1616: integration test for handling of NO_CONTENT response with subsequent content
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1661627 13f79535-47bb-0310-9956-ffa450edef68
2015-02-23 09:44:18 +00:00
Oleg Kalnichevski 56ec3b9c10 Javadoc fix
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1661626 13f79535-47bb-0310-9956-ffa450edef68
2015-02-23 09:44:04 +00:00
Oleg Kalnichevski 17cce6f2a2 HTTPCLIENT-1615: Commons Logging import in OSGi bundle changed to include versions 1.2.x
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1660583 13f79535-47bb-0310-9956-ffa450edef68
2015-02-18 09:35:09 +00:00
Oleg Kalnichevski 5c5177e581 HTTPCLIENT-1611: NoClassDefFoundError: org/apache/http/ssl/SSLContexts in httpclient-osgi
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1659676 13f79535-47bb-0310-9956-ffa450edef68
2015-02-13 20:45:12 +00:00
Oleg Kalnichevski a52b979477 HTTPCLIENT-1609: Stale connection check in PoolingHttpClientConnectionManager has no effect
Contributed by Charles Lip <rene1 at singnet.com.sg>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1658897 13f79535-47bb-0310-9956-ffa450edef68
2015-02-11 08:45:57 +00:00
Oleg Kalnichevski 213d5b1871 HTTPCLIENT-1606: expect a more generic SSLException instead of a SSLHandshakeException
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1658153 13f79535-47bb-0310-9956-ffa450edef68
2015-02-08 12:08:06 +00:00
Oleg Kalnichevski 1fa1a94c38 Changed base API level to 4.4
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1658086 13f79535-47bb-0310-9956-ffa450edef68
2015-02-07 17:38:34 +00:00
Sebastian Bazley 8cd9811f6a Typos
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1657617 13f79535-47bb-0310-9956-ffa450edef68
2015-02-05 16:15:14 +00:00
Oleg Kalnichevski 2e292aa2b7 Upgraded HttpClient version to 4.4.1-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1656440 13f79535-47bb-0310-9956-ffa450edef68
2015-02-02 10:51:12 +00:00
Oleg Kalnichevski 4a49a41a69 HTTPCLIENT-1605: EntityBuilder sets incorrect content length for entities backed by InputStream
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1655001 13f79535-47bb-0310-9956-ffa450edef68
2015-01-27 10:35:08 +00:00
Oleg Kalnichevski 306334fad7 HTTPCLIENT-1601, HTTPCLIENT-1603: clarifications in tutorial regarding exception handling and request recovery (automatic re-execution)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1654758 13f79535-47bb-0310-9956-ffa450edef68
2015-01-26 10:41:30 +00:00
Oleg Kalnichevski 5f9f55df16 HTTPCLIENT-1604: accept empty BASIC auth challenge as valid
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1654753 13f79535-47bb-0310-9956-ffa450edef68
2015-01-26 10:03:12 +00:00
Oleg Kalnichevski 0838afd074 Removed assert of functionality that tends to be platform specific
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1654745 13f79535-47bb-0310-9956-ffa450edef68
2015-01-26 09:08:07 +00:00
Oleg Kalnichevski 0baed01f64 Updated copyright statement in NOTICE
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1654490 13f79535-47bb-0310-9956-ffa450edef68
2015-01-24 11:03:17 +00:00
Sebastian Bazley 99727816af Fix indentation - no code change
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1653970 13f79535-47bb-0310-9956-ffa450edef68
2015-01-22 17:40:44 +00:00
Michael Osipov 793b840046 Update section about SSPI authentication in RELASE_NOTES.txt
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1653876 13f79535-47bb-0310-9956-ffa450edef68
2015-01-22 14:32:51 +00:00
Sebastian Bazley 16e5662267 Trivial tweaks
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1653074 13f79535-47bb-0310-9956-ffa450edef68
2015-01-19 18:56:32 +00:00
Oleg Kalnichevski 0b124640dd Updated HttpClient 4.4 release notes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1653043 13f79535-47bb-0310-9956-ffa450edef68
2015-01-19 16:25:47 +00:00
Oleg Kalnichevski 083aeaf14f Typo
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1653042 13f79535-47bb-0310-9956-ffa450edef68
2015-01-19 16:25:34 +00:00
Oleg Kalnichevski 1e50e40854 Updated HttpClient tutorial for 4.4 release
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1652164 13f79535-47bb-0310-9956-ffa450edef68
2015-01-15 16:28:53 +00:00
Oleg Kalnichevski 939c69d378 Added example demonstrating how to use a custom public suffix list
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1652161 13f79535-47bb-0310-9956-ffa450edef68
2015-01-15 16:28:34 +00:00
Oleg Kalnichevski bc2b4930bd HTTPCLIENT-1595: respect SSL protocols disabled by default by the provider
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1650758 13f79535-47bb-0310-9956-ffa450edef68
2015-01-10 15:50:04 +00:00
Oleg Kalnichevski a0dee0cb50 Conciser debug logging of cert peer and issuer alternative names
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1650756 13f79535-47bb-0310-9956-ffa450edef68
2015-01-10 15:39:55 +00:00
Oleg Kalnichevski d16152c10f RequestBuilder add Patch support
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1650292 13f79535-47bb-0310-9956-ffa450edef68
2015-01-08 14:04:04 +00:00
Oleg Kalnichevski 529e1373a5 HttpClientBuilder comment fix
Fixed comments of setTargetAuthenticationStrategy and setProxyAuthenticationStrategy methods.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1650006 13f79535-47bb-0310-9956-ffa450edef68
2015-01-07 08:14:23 +00:00
Oleg Kalnichevski 65ebd91590 Improved domain root matching by default HostnameVerifier
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1649507 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 11:54:31 +00:00
Oleg Kalnichevski 5f6bdd43f9 SSL session debug logs
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1648917 13f79535-47bb-0310-9956-ffa450edef68
2015-01-01 18:53:31 +00:00
Oleg Kalnichevski 2aecfef8fa Simplified test SSL context initialization
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1648507 13f79535-47bb-0310-9956-ffa450edef68
2014-12-30 11:34:28 +00:00
Oleg Kalnichevski 1f3d34b6bd InternalHttpClient class to implement Configurable (per request of Spring folks)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1647755 13f79535-47bb-0310-9956-ffa450edef68
2014-12-24 09:44:05 +00:00
Oleg Kalnichevski 978c67d3da Added builder class for FormBodyPart instances; API improvements in MultipartEntityBuilder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1647648 13f79535-47bb-0310-9956-ffa450edef68
2014-12-23 19:03:45 +00:00
Oleg Kalnichevski f114594c6f Do not include obsolete Cookie2 request header by default
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1647647 13f79535-47bb-0310-9956-ffa450edef68
2014-12-23 19:03:27 +00:00
Oleg Kalnichevski 46613dfcdc Fixed binary compatibility with 4.3
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1647646 13f79535-47bb-0310-9956-ffa450edef68
2014-12-23 19:03:14 +00:00
Oleg Kalnichevski 6921c08154 More efficient URL encoded content parser implementation
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1647645 13f79535-47bb-0310-9956-ffa450edef68
2014-12-23 19:03:04 +00:00
Oleg Kalnichevski c4f47f3489 Use RFC 6265 cookie spec as standard policy
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1647644 13f79535-47bb-0310-9956-ffa450edef68
2014-12-23 19:02:53 +00:00
Oleg Kalnichevski cd41e8998d Marked Cookie API methods obsoleted by RFC 6265 with @Obsolete annotation
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1647643 13f79535-47bb-0310-9956-ffa450edef68
2014-12-23 19:02:41 +00:00