Commit Graph

1188 Commits

Author SHA1 Message Date
Gary D. Gregory 517e64778f [HTTPCLIENT-1715] NTLMEngineImpl.Type1Message not thread safe but declared as a constant.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1726957 13f79535-47bb-0310-9956-ffa450edef68
2016-01-27 08:34:23 +00:00
Gary D. Gregory 3a9a452730 [HTTPCLIENT-1714] Add HttpClientBuilder.setDnsResolver(DnsResolver).
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1726729 13f79535-47bb-0310-9956-ffa450edef68
2016-01-26 05:12:27 +00:00
Oleg Kalnichevski 1d50c1a1a1 HTTPCLIENT-1712: SPNego schemes to take service scheme into account when generating auth token
Contributed by Georg Romstorfer <georg.romstorfer at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1724852 13f79535-47bb-0310-9956-ffa450edef68
2016-01-15 16:38:07 +00:00
Oleg Kalnichevski b781fa8e03 HTTPCLIENT-1700: Netscape draft, browser compatibility, RFC 2109, RFC 2965 and default cookie specs to ignore cookies with empty name for consistency with RFC 6265 specs
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1722959 13f79535-47bb-0310-9956-ffa450edef68
2016-01-04 20:22:48 +00:00
Oleg Kalnichevski f9514a0f9a Fix for HTTPCORE-397
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1722952 13f79535-47bb-0310-9956-ffa450edef68
2016-01-04 19:55:16 +00:00
Oleg Kalnichevski 148b7d5105 Set socker buffer send/receive sizes from SocketConfig
Contributed by  Will Vuong <wvuong at chariotsolutions.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1720386 13f79535-47bb-0310-9956-ffa450edef68
2015-12-16 16:19:13 +00:00
Oleg Kalnichevski 79fdcb7dcb HTTPCLIENT-1704: IgnoreSpec#match to always return false
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1719950 13f79535-47bb-0310-9956-ffa450edef68
2015-12-14 16:27:26 +00:00
Oleg Kalnichevski 1c151cf38a HTTPCLIENT-1550: fixed 'deflate' zlib header check
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1717323 13f79535-47bb-0310-9956-ffa450edef68
2015-11-30 20:34:24 +00:00
Oleg Kalnichevski 1b0cf671f2 HTTPCLIENT-1698: Fixed matching of IPv6 addresses by DefaultHostnameVerifier
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1716972 13f79535-47bb-0310-9956-ffa450edef68
2015-11-28 13:25:56 +00:00
Oleg Kalnichevski cd8c72626f HTTPCLIENT-1695: RFC 6265 compliant cookie spec to ignore cookies with empty name / missing value
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1714365 13f79535-47bb-0310-9956-ffa450edef68
2015-11-14 20:45:32 +00:00
Oleg Kalnichevski 549c26f958 HTTPCLIENT-1216: removed ThreadLocal subclass from DateUtils
Contributed by Jochen Kemnade <jochen.kemnade at eddyson.de>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1713429 13f79535-47bb-0310-9956-ffa450edef68
2015-11-09 13:18:30 +00:00
Oleg Kalnichevski 2f062b3b43 HTTPCLIENT-1685: PublicSuffixDomainFilter to ignore local hosts and local domains (follow-up)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1706582 13f79535-47bb-0310-9956-ffa450edef68
2015-10-03 13:46:01 +00:00
Oleg Kalnichevski e3232f5425 HTTPCLIENT-1685: PublicSuffixDomainFilter to ignore local hosts and local domains
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1706576 13f79535-47bb-0310-9956-ffa450edef68
2015-10-03 13:07:21 +00:00
Oleg Kalnichevski b6c1516e61 Upgraded HttpClient version to 4.5.2-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1703168 13f79535-47bb-0310-9956-ffa450edef68
2015-09-15 12:18:02 +00:00
Oleg Kalnichevski 8cf6df2c8b Log socket timeout values
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1701258 13f79535-47bb-0310-9956-ffa450edef68
2015-09-04 13:47:05 +00:00
Oleg Kalnichevski 6fd73b5fb5 HTTPCLIENT-1680: redirect of a POST request causes ClientProtocolException
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1700136 13f79535-47bb-0310-9956-ffa450edef68
2015-08-30 16:34:38 +00:00
Michael Osipov 3ae055638f HTTPCLIENT-1106: Use character arrays for passwords in Credentials objects, not Strings
Deprecate constructors using String-based passwords

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1696576 13f79535-47bb-0310-9956-ffa450edef68
2015-08-19 13:02:54 +00:00
Michael Osipov 795a092dbd Correct spelling of user 'principal' in the documentation
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1695238 13f79535-47bb-0310-9956-ffa450edef68
2015-08-11 10:00:42 +00:00
Oleg Kalnichevski dee78eca68 Removed unused import
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1694729 13f79535-47bb-0310-9956-ffa450edef68
2015-08-07 18:51:38 +00:00
Oleg Kalnichevski 369b375c3b Use httpbin.org in examples
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1694618 13f79535-47bb-0310-9956-ffa450edef68
2015-08-07 07:33:11 +00:00
Oleg Kalnichevski 3b94921d03 HTTPCLIENT-1667: RequestBuilder does not take charset into account when creating UrlEncodedFormEntity
Contributed by Sergey Smith <smithsv at bk.ru>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1692404 13f79535-47bb-0310-9956-ffa450edef68
2015-07-23 15:25:56 +00:00
Oleg Kalnichevski c6be20feb0 HTTPCLIENT-1658: fixed regression in RequestBuilder#copy
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1685285 13f79535-47bb-0310-9956-ffa450edef68
2015-06-13 16:31:15 +00:00
Oleg Kalnichevski 78cf770aec HTTPCLIENT-1655: HttpClient sends RST instead of FIN ACK sequence when using non-persistant connections
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1683684 13f79535-47bb-0310-9956-ffa450edef68
2015-06-05 09:17:41 +00:00
Oleg Kalnichevski 12482402c4 Upgraded HttpClient version to 4.5.1-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1683489 13f79535-47bb-0310-9956-ffa450edef68
2015-06-04 08:41:39 +00:00
Oleg Kalnichevski 20e3f42df2 Cache request line in HttpRequestWrapper
Contributed by Dmitry Potapov <dpotapov at yandex-team.ru>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1683475 13f79535-47bb-0310-9956-ffa450edef68
2015-06-04 07:38:42 +00:00
Oleg Kalnichevski ea21ed26a7 HTTPCLIENT-1654: better backward compatibility
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1682713 13f79535-47bb-0310-9956-ffa450edef68
2015-05-31 10:46:03 +00:00
Michael Osipov eb4a62f609 HTTPCLIENT-1654: Deprecate/remove RequestConfig#decompressionEnabled in favor of #contentCompressionEnabled
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1682650 13f79535-47bb-0310-9956-ffa450edef68
2015-05-30 20:11:17 +00:00
Michael Osipov 6cd90f89be HTTPCLIENT-1651: Add ability to disable content compression on a request basis
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1682646 13f79535-47bb-0310-9956-ffa450edef68
2015-05-30 19:38:50 +00:00
Michael Osipov ed39644543 Fixed typo in exception message
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1682244 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 13:47:24 +00:00
Oleg Kalnichevski 6e6b8e5180 Reduced default validate after inactivity setting from 5 sec to 2 sec
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1681021 13f79535-47bb-0310-9956-ffa450edef68
2015-05-22 07:32:47 +00:00
Oleg Kalnichevski 8fc08b322e HTTPCLIENT-1649: serialization of auth schemes is broken
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1681016 13f79535-47bb-0310-9956-ffa450edef68
2015-05-22 07:24:01 +00:00
Oleg Kalnichevski e4157e5d24 HTTPCLIENT-1648: Lax redirect strategy to allow redirects with DELETE method
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1680499 13f79535-47bb-0310-9956-ffa450edef68
2015-05-20 09:20:04 +00:00
Oleg Kalnichevski 68d48b3fd4 Fixed binary incompatibilities with 4.4
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1677102 13f79535-47bb-0310-9956-ffa450edef68
2015-05-01 09:09:09 +00:00
Gary D. Gregory 2ce0bdccc0 Minor formatting.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1676916 13f79535-47bb-0310-9956-ffa450edef68
2015-04-30 07:55:41 +00:00
Gary D. Gregory 2fddd8e03b Unnecessary final modifier in final class.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1676915 13f79535-47bb-0310-9956-ffa450edef68
2015-04-30 07:55:16 +00:00
Oleg Kalnichevski 6f4a762197 HTTPCLIENT-1643: tolerate unknown content encodings by default
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1676713 13f79535-47bb-0310-9956-ffa450edef68
2015-04-29 10:32:24 +00:00
Oleg Kalnichevski bf0844103a HTTPCLIENT-1641: cleaner and more efficient implementation of URIUtils#normalizeSyntax
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1674480 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 10:31:15 +00:00
Oleg Kalnichevski 2a0cd17536 HTTPCLIENT-1640: RFC6265 lax cookie policy fails to parse 'max-age' attribute
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1674059 13f79535-47bb-0310-9956-ffa450edef68
2015-04-16 12:21:13 +00:00
Oleg Kalnichevski 163f7804b8 Made RFC6265CookieSpec public with a protected constructor
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1672852 13f79535-47bb-0310-9956-ffa450edef68
2015-04-11 09:41:08 +00:00
Oleg Kalnichevski 3ee78bbcb8 Marked RFC 2109, RFC 2965, Netscape draft cookie specs as obsolete
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1668099 13f79535-47bb-0310-9956-ffa450edef68
2015-03-20 17:10:42 +00:00
Oleg Kalnichevski e7b2729d9a HTTPCLIENT-1633: RFC6265CookieSpecProvider compatibility level setting has no effect
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1666802 13f79535-47bb-0310-9956-ffa450edef68
2015-03-15 14:09:55 +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 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 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 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 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 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
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
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 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 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
Oleg Kalnichevski 70489c4bb0 RFC 6265 compliant cookie spec
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1646864 13f79535-47bb-0310-9956-ffa450edef68
2014-12-19 20:59:42 +00:00
Oleg Kalnichevski e767d59e5d HTTPCLIENT-1588: code optimization
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1644166 13f79535-47bb-0310-9956-ffa450edef68
2014-12-09 20:20:18 +00:00
Oleg Kalnichevski 4e4424a584 Corrected handling of cookie attributes with null value
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1644165 13f79535-47bb-0310-9956-ffa450edef68
2014-12-09 20:20:06 +00:00
Sebastian Bazley dd354a8ba5 Javadoc
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1644081 13f79535-47bb-0310-9956-ffa450edef68
2014-12-09 15:13:09 +00:00
Oleg Kalnichevski babafa8c41 HTTPCLIENT-1585: SSLContextBuilder to preserve natural order of trust / key managers when loading trust / ket material from multiple sources
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1644005 13f79535-47bb-0310-9956-ffa450edef68
2014-12-09 09:27:58 +00:00
Oleg Kalnichevski 5a192e2bf4 HTTPCLIENT-1583: optional connection eviction thread for non-shared connection managers to pro-actively evict expired / idle persistent connections from the connection pool
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1643671 13f79535-47bb-0310-9956-ffa450edef68
2014-12-07 12:42:19 +00:00
Michael Osipov ccbf517475 HTTPCLIENT-1567: Update SPNEGO scheme name to 'Negotiate'
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1639801 13f79535-47bb-0310-9956-ffa450edef68
2014-11-14 22:29:45 +00:00
Michael Osipov 2489d1df66 HTTPCLIENT-1568: Improve docs on AuthSchemes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1639776 13f79535-47bb-0310-9956-ffa450edef68
2014-11-14 19:59:40 +00:00
Michael Osipov 3b5df666a9 HTTPCLIENT-1567: Update SPNEGO scheme name to 'Negotiate'
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1639771 13f79535-47bb-0310-9956-ffa450edef68
2014-11-14 19:51:35 +00:00
Oleg Kalnichevski ec9afb1a1a HTTPCLIENT-1575: HttpRoute constructor to resolve default target port (-1) based on standard scheme port convention (http -> 80, https -> 443); to be removed in 5.0
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1639698 13f79535-47bb-0310-9956-ffa450edef68
2014-11-14 16:47:00 +00:00
Oleg Kalnichevski 1964e9530a HTTPCLIENT-1575: Disallow HttpRoute instances with default (-1) port
Contributed by Joseph Walton <joe at kafsemo.org>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1638138 13f79535-47bb-0310-9956-ffa450edef68
2014-11-11 15:09:48 +00:00
Oleg Kalnichevski 114a5bf4ab Disable all versions of SSL protocol by default
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1632979 13f79535-47bb-0310-9956-ffa450edef68
2014-10-19 19:20:56 +00:00
Oleg Kalnichevski f6fed403fa Fixed disabled test case and removed broken one in TestSSLSocketFactory
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1631243 13f79535-47bb-0310-9956-ffa450edef68
2014-10-12 19:05:16 +00:00
Oleg Kalnichevski 8a7586336d Restored test case deleted by mistake
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1631241 13f79535-47bb-0310-9956-ffa450edef68
2014-10-12 18:55:33 +00:00
Oleg Kalnichevski 2c0bf9ac10 Use SSLContextBuilder from HttpCore
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1631230 13f79535-47bb-0310-9956-ffa450edef68
2014-10-12 17:43:08 +00:00
Oleg Kalnichevski 4c9577a08f Do not run public suffix test on simple host names (non DNS names)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1631106 13f79535-47bb-0310-9956-ffa450edef68
2014-10-11 20:01:33 +00:00
Oleg Kalnichevski 66a1b7055c Use absolute path to public-suffix-list.txt resource
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1631102 13f79535-47bb-0310-9956-ffa450edef68
2014-10-11 19:21:43 +00:00
Oleg Kalnichevski 3d2fcba7e5 HTTPCLIENT-1565: ClientExecuteSOCKS example doesn't specify the context while making the request
Contributed by Rohit Agarwal <mindprince at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1631053 13f79535-47bb-0310-9956-ffa450edef68
2014-10-11 15:06:07 +00:00
Oleg Kalnichevski 526a8c51fc HTTPCLIENT-1556: Default CookieSpecs provider not found for AbstractHttpClient subclass
Contributed by Timo Kinnunen <timo.kinnunen at gmail.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1629134 13f79535-47bb-0310-9956-ffa450edef68
2014-10-03 08:14:29 +00:00
Oleg Kalnichevski b47a2333bf HTTPCLIENT-1557: minor code improvements
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1629130 13f79535-47bb-0310-9956-ffa450edef68
2014-10-03 07:58:47 +00:00
Oleg Kalnichevski de48ae0c85 Upgraded HttpClient version to 4.4-beta2-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1627720 13f79535-47bb-0310-9956-ffa450edef68
2014-09-26 07:38:00 +00:00
Oleg Kalnichevski 0f227fa940 Added optional parameters for content length strategies
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1627507 13f79535-47bb-0310-9956-ffa450edef68
2014-09-25 10:50:48 +00:00
Oleg Kalnichevski 1d09a8308f Use non-zero connect timeout as SSL handshake handshake (socket) timeout if not explicitly set by the caller (socket timeout is zero)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1626782 13f79535-47bb-0310-9956-ffa450edef68
2014-09-22 14:10:17 +00:00
Oleg Kalnichevski 4c20cf5398 Fixed javadoc warning
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1626738 13f79535-47bb-0310-9956-ffa450edef68
2014-09-22 11:37:54 +00:00
Oleg Kalnichevski 0739770c15 NetscapeDraftHeaderParser to use TokenParser from core internally
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1626680 13f79535-47bb-0310-9956-ffa450edef68
2014-09-22 07:33:12 +00:00
Oleg Kalnichevski 90c97da9b8 Upgraded HttpCore to version 4.4-beta1
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1626679 13f79535-47bb-0310-9956-ffa450edef68
2014-09-22 07:32:54 +00:00
Oleg Kalnichevski 061f150ab1 Fixed IllegalArgumentException in URIUtils#extractHost thrown in case of host name containing blanks
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1625255 13f79535-47bb-0310-9956-ffa450edef68
2014-09-16 12:07:44 +00:00
Oleg Kalnichevski fe876f9656 HTTPCLIENT-1380: more informative exception message
Contributed by Joseph Walton <joe at kafsemo.org>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1624971 13f79535-47bb-0310-9956-ffa450edef68
2014-09-15 08:32:29 +00:00
Oleg Kalnichevski 3f637807f6 HTTPCLIENT-1525: fixed inconsistent debug log
Contributed by Joseph Walton <joe at kafsemo.org>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1624969 13f79535-47bb-0310-9956-ffa450edef68
2014-09-15 08:31:28 +00:00
Oleg Kalnichevski 9af96d03ff Removed deprecated test code
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623736 13f79535-47bb-0310-9956-ffa450edef68
2014-09-09 10:08:38 +00:00
Oleg Kalnichevski abe50fafe4 HttpClientBuilder to initialize public suffix matcher for cookie specs and the default hostname verifier
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623735 13f79535-47bb-0310-9956-ffa450edef68
2014-09-09 10:06:43 +00:00
Oleg Kalnichevski a4c0c6ed7c Default and standard cookie specs to use public suffix list when available
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623734 13f79535-47bb-0310-9956-ffa450edef68
2014-09-09 10:06:29 +00:00
Oleg Kalnichevski d568ebdbf3 Initialize singleton cookie specs lazily
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623733 13f79535-47bb-0310-9956-ffa450edef68
2014-09-09 10:06:14 +00:00
Oleg Kalnichevski 4478df7a70 Added public suffix list loader
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623462 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 19:06:02 +00:00
Oleg Kalnichevski 067a2454e1 Download public suffix list from Mozilla maintained <https://publicsuffix.org/>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623393 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 13:37:43 +00:00
Oleg Kalnichevski cffb877b1e Ignore unsupported cookie policies
Contributed by Dmitry Potapov <dpotapov@yandex-team.ru>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623316 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 07:57:20 +00:00
Oleg Kalnichevski e82fdff2e9 Adding support for using delegated GSSCredential for Kerberos authentication
Contributed by Vipul Mehta <vipulmehta.1989@gmail.com>

Internally httpclient relies on GSS API which uses JAAS login
configuration specified by user to get the GSSCredential. This patch
will allow a user to avoid the config file and directly set a delegated
or normal GSSCredential. A normal GSSCredential can be  obtained
programatically from
spn-keytab or user-password using custom Login module.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623311 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 07:44:18 +00:00
Oleg Kalnichevski 6f706c2328 Default HostnameVerifier to check server identity against public suffix list
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1622866 13f79535-47bb-0310-9956-ffa450edef68
2014-09-06 14:46:12 +00:00
Sebastian Bazley 3bb9aa5099 string matching is cheaper than regex matching so do it first
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1622753 13f79535-47bb-0310-9956-ffa450edef68
2014-09-05 18:19:55 +00:00
Oleg Kalnichevski 9e83772d35 Reverted to simple wildcard matching
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1622696 13f79535-47bb-0310-9956-ffa450edef68
2014-09-05 13:17:30 +00:00
Oleg Kalnichevski 2466424d5d Re-designed Public Suffix matching algorhithm based on recommendations published at https://publicsuffix.org/list/
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1622478 13f79535-47bb-0310-9956-ffa450edef68
2014-09-04 14:00:16 +00:00
Sebastian Bazley 4ee8c3e011 Spelling
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1621235 13f79535-47bb-0310-9956-ffa450edef68
2014-08-29 00:22:04 +00:00
Sebastian Bazley 208aa059de Trailing space
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1621230 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 23:40:37 +00:00
Sebastian Bazley 96475684ab Javadoc8 fixes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1621225 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 23:09:12 +00:00
Sebastian Bazley 865260ba79 Document missing case labels
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1621220 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 22:47:08 +00:00
Sebastian Bazley 2865cd0d0d Suppress deprecation warning
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1621217 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 22:46:05 +00:00
Oleg Kalnichevski 195753c562 Deprecated old non-thread safe public suffix domain filter in favor of new thread safe implementation
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1621183 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 19:08:25 +00:00
Oleg Kalnichevski 3cd94a86f3 Factored Public Suffix matching code into a separate utility class
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1621182 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 19:08:09 +00:00
Oleg Kalnichevski 1e2d2f38a0 Deprecated internal punycode implementation in favor of standard java.net.IDN
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1620942 13f79535-47bb-0310-9956-ffa450edef68
2014-08-27 17:11:18 +00:00
Oleg Kalnichevski 221e7ba59e Refactored public suffix list parser; deprecated old implementation
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1620941 13f79535-47bb-0310-9956-ffa450edef68
2014-08-27 17:08:08 +00:00
Oleg Kalnichevski 45100c7d6d Deprecated browser compat policy in favor of the default (best match) policy
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1620940 13f79535-47bb-0310-9956-ffa450edef68
2014-08-27 17:07:53 +00:00
Oleg Kalnichevski 139529327c Replaced BEST_MATCH with DEFAULT policy
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1620939 13f79535-47bb-0310-9956-ffa450edef68
2014-08-27 17:07:34 +00:00
Oleg Kalnichevski 92700fd23b Cookie spec provides to re-use the same thread-safe CookieSpec instance by default
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1620787 13f79535-47bb-0310-9956-ffa450edef68
2014-08-27 07:44:54 +00:00
Oleg Kalnichevski 70d3412315 Default cookie spec to permit 'expires' attribute for Netscape style cookies only
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1620613 13f79535-47bb-0310-9956-ffa450edef68
2014-08-26 14:38:28 +00:00
Oleg Kalnichevski 243c862a03 Made all cookie spec implementations thread safe
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1620612 13f79535-47bb-0310-9956-ffa450edef68
2014-08-26 14:37:36 +00:00
Oleg Kalnichevski 6b2b1a6e93 Code cleanup
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619782 13f79535-47bb-0310-9956-ffa450edef68
2014-08-22 12:35:59 +00:00
Oleg Kalnichevski 5c006f8d30 BestMatchSpec to use Netscape policy instead of browser compatibility for netscape style cookies; browser compatibility policy is to be deprecated
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619780 13f79535-47bb-0310-9956-ffa450edef68
2014-08-22 12:35:14 +00:00
Gary D. Gregory b1c463577a Javadoc 8 fixes.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619439 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 15:27:50 +00:00
Gary D. Gregory b718e427a6 Fix bogus javadoc.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619434 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 15:23:21 +00:00
Gary D. Gregory 5a851c7f0d Javadoc 8 fixes: Use {@code foo} instead of <code>foo</foo>. Fix a previous bad commit.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619433 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 15:21:32 +00:00
Gary D. Gregory fb374dab5f Javadoc 8 fixes: Use {@code foo} instead of <code>foo</foo>.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619429 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 15:09:04 +00:00
Gary D. Gregory ebd174ab22 Checkstyle: remove trailing space.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619423 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 14:57:22 +00:00
Gary D. Gregory 5e2d999c0b Javadoc 8 fixes.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619420 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 14:56:49 +00:00
Gary D. Gregory 8e1feea095 Javadoc 8 fixes.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619409 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 14:22:14 +00:00
Gary D. Gregory c76412a839 Javadoc 8 fixes.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619405 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 14:19:59 +00:00
Gary D. Gregory 4007c05f9b Javadoc 8 fixes.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619400 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 14:11:32 +00:00
Gary D. Gregory 7e4cfbb688 Branding: Use "Apache" in Maven module names and descriptions.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619388 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 13:22:42 +00:00
Oleg Kalnichevski 268d6cc113 Improved cert identity matching based on regex patterns
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619372 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 11:57:11 +00:00
Oleg Kalnichevski 79b1eae93b Deprecated BrowserCompatHostnameVerifier and StrictHostnameVerifier in favor of DefaultHostnameVerifier
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1618870 13f79535-47bb-0310-9956-ffa450edef68
2014-08-19 14:19:21 +00:00
Oleg Kalnichevski 95c0f4857e Ported existing test cases to new default HostnameVerifier impl
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1618868 13f79535-47bb-0310-9956-ffa450edef68
2014-08-19 14:11:23 +00:00
Oleg Kalnichevski d2400e0758 Improved compliance with RFC 2818: default hostname verifier to ignore the common name of the certificate subject if alternative subject names (dNSName or iPAddress) are present
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1618867 13f79535-47bb-0310-9956-ffa450edef68
2014-08-19 14:09:30 +00:00
Oleg Kalnichevski 196ac3f328 Re-designed hostname verification API and rewritten implementation code
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1618698 13f79535-47bb-0310-9956-ffa450edef68
2014-08-18 18:39:33 +00:00
Oleg Kalnichevski 7c33892b02 Use RFC2253 encoded cert subject
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1618566 13f79535-47bb-0310-9956-ffa450edef68
2014-08-18 09:26:19 +00:00