Commit Graph

2435 Commits

Author SHA1 Message Date
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 0047490d55 HTTPCLIENT-1563: HttpClient OSGi bundle doesn't import packages "javax.naming.ldap" and "javax.naming.directory"
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1631046 13f79535-47bb-0310-9956-ffa450edef68
2014-10-11 14:10:32 +00:00
Oleg Kalnichevski ebc0587569 HTTPCLIENT-1562: Typo in WindowsNegotiateScheme
Contributed by Michael Osipov <michaelo at apache.org>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1630126 13f79535-47bb-0310-9956-ffa450edef68
2014-10-08 14:42:35 +00:00
Oleg Kalnichevski c69064b336 HTTPCLIENT-1560: Request mutual auth in WinHttpClient
Contributed by Michael Osipov <michaelo at apache.org>

Removed ISC_REQ_CONNECTION because it is already set
by default. Added ISC_REQ_MUTUAL_AUTH which is also
required by ISC_REQ_DELEGATE.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1630125 13f79535-47bb-0310-9956-ffa450edef68
2014-10-08 14:42:23 +00:00
Oleg Kalnichevski 62106208ed HTTPCLIENT-1558: HttpCore classes included in the OSGi bundle
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1629484 13f79535-47bb-0310-9956-ffa450edef68
2014-10-05 11:22:42 +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
Gary D. Gregory a46b25c7b2 *.truststore files must be excluded from RAT checks.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1627533 13f79535-47bb-0310-9956-ffa450edef68
2014-09-25 12:56:06 +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 04337ec994 Updated HttpClient 4.4-beta1 release notes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1626740 13f79535-47bb-0310-9956-ffa450edef68
2014-09-22 11:38:16 +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 ac583ff870 Updated Java API documentation reference
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1626737 13f79535-47bb-0310-9956-ffa450edef68
2014-09-22 11:37:41 +00:00
Oleg Kalnichevski 49069049f2 Added apache-rat maven plugin
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1626736 13f79535-47bb-0310-9956-ffa450edef68
2014-09-22 11:37:30 +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
Gary D. Gregory bb5f72f6fe Added a section called "Validating packages".
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1626487 13f79535-47bb-0310-9956-ffa450edef68
2014-09-20 18:52: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 95e5c2441d Removed entry about <https://publicsuffix.org/list/effective_tld_names.dat> distribution from NOTICE
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623781 13f79535-47bb-0310-9956-ffa450edef68
2014-09-09 12:12:45 +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 8c2d2c8192 Added a statement to NOTICE regarding distribution of the Public Suffix List copied from <https://publicsuffix.org/list/effective_tld_names.dat> licensed under MPLv2; added MPLv2 license text
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623394 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 13:37:56 +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