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
Oleg Kalnichevski
e8dbce5f9b
HTTPCLIENT-1544: Fixed NPE in ResponseProcessCookies when running with DEBUG priority
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1618328 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 11:06:55 +00:00
Oleg Kalnichevski
683bb070fd
HTTPCLIENT-1542: Caching HttpClient uses absolute URIs for validation
...
Based on contribution by Joseph Walton <joe at kafsemo.org>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1618324 13f79535-47bb-0310-9956-ffa450edef68
2014-08-16 10:51:35 +00:00
Oleg Kalnichevski
3df564f0c6
CookieNetscapeDraft to ignore Version and Max-Age attributes; BrowserCompatSpec to reset cookie version to 0 for Neetscape style cookies
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1617278 13f79535-47bb-0310-9956-ffa450edef68
2014-08-11 13:32:46 +00:00
Oleg Kalnichevski
f955504b33
Deprecated CloseableHttpResponseProxy
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1617274 13f79535-47bb-0310-9956-ffa450edef68
2014-08-11 13:23:55 +00:00
Oleg Kalnichevski
caae4ef049
HTTPCLIENT-1538 : monitor contention in deprecated code
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1617273 13f79535-47bb-0310-9956-ffa450edef68
2014-08-11 13:23:40 +00:00
Oleg Kalnichevski
f5bf414adc
Deprecated X509HostnameVerifier interface in favor of standard javax.net.ssl.HostnameVerifier
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1616758 13f79535-47bb-0310-9956-ffa450edef68
2014-08-08 14:00:55 +00:00
Oleg Kalnichevski
80b0014754
Reverted r1616137, r1616136, r1615900
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1616688 13f79535-47bb-0310-9956-ffa450edef68
2014-08-08 08:30:01 +00:00
Sebastian Bazley
d5a4d66890
copy fixes made to original in r1616430
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1616532 13f79535-47bb-0310-9956-ffa450edef68
2014-08-07 16:43:37 +00:00
Oleg Kalnichevski
262fec5203
HTTPCLIENT-1535: Permit other addresses to be tried in the event of a NoRouteToHostException. e.g. when there one of the addresses to be used is an ipv6 address when the client does not have an ipv6 route to that particular host
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1616239 13f79535-47bb-0310-9956-ffa450edef68
2014-08-06 14:14:45 +00:00
Oleg Kalnichevski
0bc123c992
Replaced LdapName with custom DN parser
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1616137 13f79535-47bb-0310-9956-ffa450edef68
2014-08-06 09:29:58 +00:00
Oleg Kalnichevski
95953f857e
Custom distingushed name parser
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1616136 13f79535-47bb-0310-9956-ffa450edef68
2014-08-06 09:29:39 +00:00
Oleg Kalnichevski
6c4f30fc4d
HTTPCLIENT-1536: default connection operator to use HttpHost#getAddress if available
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1615915 13f79535-47bb-0310-9956-ffa450edef68
2014-08-05 11:53:55 +00:00
Oleg Kalnichevski
f3e67f807c
Made package private copy of TokenParser until provided by HttpCore
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1615900 13f79535-47bb-0310-9956-ffa450edef68
2014-08-05 09:39:54 +00:00
Oleg Kalnichevski
2ad9a219de
Code clean; renamed some package private methods
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1614354 13f79535-47bb-0310-9956-ffa450edef68
2014-07-29 13:56:10 +00:00
Oleg Kalnichevski
770285d505
Catch and ignore NoSuchElementException when accessing CN attribute of a subject principal
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1614270 13f79535-47bb-0310-9956-ffa450edef68
2014-07-29 07:13:54 +00:00
Oleg Kalnichevski
0852f1b4d8
Improved cert subject parsing
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1614065 13f79535-47bb-0310-9956-ffa450edef68
2014-07-28 15:57:36 +00:00
Oleg Kalnichevski
4216fc1f10
HTTPCLIENT-1531: CONNECT via proxy fails if authentication is disabled
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1612816 13f79535-47bb-0310-9956-ffa450edef68
2014-07-23 11:54:17 +00:00
Gary D. Gregory
9e4c8332f8
Javadoc fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1612086 13f79535-47bb-0310-9956-ffa450edef68
2014-07-20 13:42:19 +00:00
Oleg Kalnichevski
d7c64ee9c0
HTTPCLIENT-1526: No User-Agent set in tunneled proxy connection
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1610598 13f79535-47bb-0310-9956-ffa450edef68
2014-07-15 07:10:50 +00:00
Oleg Kalnichevski
7284afbe71
HTTPCLIENT-1517: strip port and optionaly use canonical hostname when creating kerberos / gssapi context
...
Contributed by Sebastian Brabänder <apache-devel at brabaender-it.de>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1610401 13f79535-47bb-0310-9956-ffa450edef68
2014-07-14 12:32:42 +00:00
Oleg Kalnichevski
8ed2196cd7
HTTPCLIENT-1524: RFC 2617 auth schemes (basic and digest) cannot handle auth parameters with mixed or upper case
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1606699 13f79535-47bb-0310-9956-ffa450edef68
2014-06-30 11:55:46 +00:00
Oleg Kalnichevski
dbf7a77171
Added new functionality to the pooling conn manager introduced by HTTPCORE-374
...
Contributed by Dmitry Potapov <potapov.d at gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1606665 13f79535-47bb-0310-9956-ffa450edef68
2014-06-30 10:12:31 +00:00
Oleg Kalnichevski
d20886cd56
Upgraded HttpClient version to 4.4-alpha2-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1606643 13f79535-47bb-0310-9956-ffa450edef68
2014-06-30 08:20:31 +00:00
Sebastian Bazley
a3b9c1720b
Typo
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1606416 13f79535-47bb-0310-9956-ffa450edef68
2014-06-29 02:11:30 +00:00
Oleg Kalnichevski
d9cc6c8879
Javadoc fixes
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1606188 13f79535-47bb-0310-9956-ffa450edef68
2014-06-27 19:30:09 +00:00
Sebastian Bazley
4c89604863
A single trailing space breaks the build ...
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1604913 13f79535-47bb-0310-9956-ffa450edef68
2014-06-23 19:32:43 +00:00
Sebastian Bazley
899c7c8046
More doc on connection checking
...
Fix bug in Javadoc - default is now false.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1604897 13f79535-47bb-0310-9956-ffa450edef68
2014-06-23 18:18:03 +00:00
Sebastian Bazley
80cf0fec6e
Document stale connection strategy change
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1604896 13f79535-47bb-0310-9956-ffa450edef68
2014-06-23 18:10:21 +00:00
Sebastian Bazley
41afff3f2a
Tab police
...
Though I had found all the tab generators in Eclipse ...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1604894 13f79535-47bb-0310-9956-ffa450edef68
2014-06-23 17:49:50 +00:00
Sebastian Bazley
4006d7e4f2
Add TODOs for code that needs looking at
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1604892 13f79535-47bb-0310-9956-ffa450edef68
2014-06-23 17:46:29 +00:00
Sebastian Bazley
c6113729e2
Add dummy SVUIID
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1604884 13f79535-47bb-0310-9956-ffa450edef68
2014-06-23 17:18:33 +00:00
Sebastian Bazley
0490cdd679
Add dummy SVUIID
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1604883 13f79535-47bb-0310-9956-ffa450edef68
2014-06-23 17:17:55 +00:00
Oleg Kalnichevski
c5c0bc6801
HTTPCLIENT-1493: Indiscriminate connection checking has been deprecated in favor of conditional connection state validation. Persistent connections are to be re-validated only after a defined period inactivity prior to being leased to the consumer.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1604772 13f79535-47bb-0310-9956-ffa450edef68
2014-06-23 12:13:35 +00:00
Gary D. Gregory
0700b14d6a
Javadoc fixes for Java 8. Replace "<tt>Foo</tt>" with "{@code Foo}".
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1603933 13f79535-47bb-0310-9956-ffa450edef68
2014-06-19 15:45:42 +00:00
Oleg Kalnichevski
3269410866
Makes no sense to me but hope it will make VMWare happy
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1603773 13f79535-47bb-0310-9956-ffa450edef68
2014-06-19 09:17:53 +00:00
Oleg Kalnichevski
d66b842b79
HTTPCLIENT-1521: Added factory method for creation of main exec, which enables subclasses of HttpClientBuilder to override the default implementation
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1603755 13f79535-47bb-0310-9956-ffa450edef68
2014-06-19 08:28:39 +00:00
Oleg Kalnichevski
ad092c5d03
HTTPCLIENT-1519: Use the original HttpHost instance passed as a parameter to HttpClient#execute when generating 'Host' request header
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1603745 13f79535-47bb-0310-9956-ffa450edef68
2014-06-19 07:52:41 +00:00
Oleg Kalnichevski
7ae0a8ac5f
Fixed binary incompatibility with 4.3
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1603744 13f79535-47bb-0310-9956-ffa450edef68
2014-06-19 07:52:25 +00:00
Oleg Kalnichevski
2ebd820284
Migrated integration tests to HttpServer from HttpCore 4.4
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1603443 13f79535-47bb-0310-9956-ffa450edef68
2014-06-18 13:06:43 +00:00
Oleg Kalnichevski
54e3ad83fc
Removed obsolete test case
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1602396 13f79535-47bb-0310-9956-ffa450edef68
2014-06-13 12:01:21 +00:00
Oleg Kalnichevski
4709d85aaf
Removed references to deprecated JUnit classes
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1602394 13f79535-47bb-0310-9956-ffa450edef68
2014-06-13 12:01:06 +00:00
Oleg Kalnichevski
dc0642e094
BasicAuthCache to cache serialized AuthScheme data; made thread safe
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1602136 13f79535-47bb-0310-9956-ffa450edef68
2014-06-12 12:12:43 +00:00
Oleg Kalnichevski
59b229079b
Test case for HTTPCLIENT-1490
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1600737 13f79535-47bb-0310-9956-ffa450edef68
2014-06-05 19:30:05 +00:00
Oleg Kalnichevski
07e7a0c281
Auth scheme state cache to use object serialization
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1600641 13f79535-47bb-0310-9956-ffa450edef68
2014-06-05 13:09:47 +00:00
Oleg Kalnichevski
6b6ad6075d
HTTPCLIENT-1434: add singletons for TrustSelfSignedStrategy and hostname verifiers
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1600133 13f79535-47bb-0310-9956-ffa450edef68
2014-06-04 12:13:16 +00:00
Oleg Kalnichevski
51ba114e63
HTTPCLIENT-1449: split AbstractVerifier into AbstractBaseHostnameVerifier and AbstractCommonHostnameVerifier the former implementing cert extraction logic while the latter implementing CN and SubjectAlts extraction and validation logic
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1600132 13f79535-47bb-0310-9956-ffa450edef68
2014-06-04 12:12:59 +00:00
Oleg Kalnichevski
5ff23f9613
https://github.com/apache/httpclient/pull/12
...
Configurable charset for request and URI builders
Contributed by isabelabel <bel at jusbrasil.com.br>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1599798 13f79535-47bb-0310-9956-ffa450edef68
2014-06-03 21:08:41 +00:00
Oleg Kalnichevski
700b390d8e
HTTPCLIENT-1472: deprecated DateParseException
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1598878 13f79535-47bb-0310-9956-ffa450edef68
2014-05-31 14:42:37 +00:00
Oleg Kalnichevski
30d5935629
HTTPCLIENT-1511: Added abstract response handler
...
Contributed by Jochen Kemnade <jochen.kemnade at eddyson.de>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1597552 13f79535-47bb-0310-9956-ffa450edef68
2014-05-26 10:31:20 +00:00
Oleg Kalnichevski
7797380cdd
Cleanups
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1597032 13f79535-47bb-0310-9956-ffa450edef68
2014-05-23 08:52:38 +00:00
Oleg Kalnichevski
fd6ebf7be0
Apply initial socket parameters prior to bind operation
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1596951 13f79535-47bb-0310-9956-ffa450edef68
2014-05-22 19:45:59 +00:00
Oleg Kalnichevski
a262021334
Replaced dynamic proxies with custom proxy classes to reduce thread contention
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1596653 13f79535-47bb-0310-9956-ffa450edef68
2014-05-21 18:57:59 +00:00
Oleg Kalnichevski
c5b8b8db5d
HTTPCLIENT-1507: clarified behavior of CloseableHttpResponse#close()
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1596521 13f79535-47bb-0310-9956-ffa450edef68
2014-05-21 09:35:49 +00:00
Oleg Kalnichevski
1ba8a897f3
HTTPCLIENT-1508: use actual JRE version when generating default User-Agent header
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1594805 13f79535-47bb-0310-9956-ffa450edef68
2014-05-15 07:52:12 +00:00
Oleg Kalnichevski
0a93660d96
Use a separate setter for shared connection manager flag
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1593923 13f79535-47bb-0310-9956-ffa450edef68
2014-05-12 11:12:48 +00:00
Oleg Kalnichevski
b40661e45e
HTTPCLIENT-1498: empty host in redirect location causes NPE
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1591221 13f79535-47bb-0310-9956-ffa450edef68
2014-04-30 09:32:52 +00:00
Oleg Kalnichevski
92b5d6d09d
HTTPCLIENT-1497: Allow zero SO_LINGER (immediate abortive close)
...
Contributed by Dmitry Potapov <potapov.d at gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1589359 13f79535-47bb-0310-9956-ffa450edef68
2014-04-23 09:41:11 +00:00
Oleg Kalnichevski
64fade92df
HTTPCLIENT-1495: shut down standard connection managers only once
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1587883 13f79535-47bb-0310-9956-ffa450edef68
2014-04-16 11:52:16 +00:00
Oleg Kalnichevski
cd1f9fc9f7
Support for shared connection managers
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1587507 13f79535-47bb-0310-9956-ffa450edef68
2014-04-15 10:53:49 +00:00
Oleg Kalnichevski
7b9408e75f
Delegate decision about null target host to route planners
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1585663 13f79535-47bb-0310-9956-ffa450edef68
2014-04-08 08:25:34 +00:00
Oleg Kalnichevski
719daae514
HTTPCLIENT-1492: connection time to live not settable via HttpClientBuilder
...
Contributed by Matt Inger <mattinger at yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1583590 13f79535-47bb-0310-9956-ffa450edef68
2014-04-01 10:04:21 +00:00
Sebastian Bazley
5e0875f0ae
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1580267 13f79535-47bb-0310-9956-ffa450edef68
2014-03-22 17:40:37 +00:00
Sebastian Bazley
b2e8a927f2
Javadoc
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1580244 13f79535-47bb-0310-9956-ffa450edef68
2014-03-22 16:28:23 +00:00
Sebastian Bazley
444b41a0a4
Align scheme names
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1580242 13f79535-47bb-0310-9956-ffa450edef68
2014-03-22 16:24:14 +00:00
Sebastian Bazley
c85a1e0344
Standardise on Locale.ROOT for case-conversion
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1579495 13f79535-47bb-0310-9956-ffa450edef68
2014-03-20 01:12:53 +00:00
Sebastian Bazley
6cbac13a39
Fixup comments:
...
- remind readers not to omit the Locale
- avoid possible false positives when searching for missing Locales
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1578687 13f79535-47bb-0310-9956-ffa450edef68
2014-03-18 00:45:07 +00:00
Oleg Kalnichevski
b370df34ca
Use explicit locale with upper/lower case conversions
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1578441 13f79535-47bb-0310-9956-ffa450edef68
2014-03-17 15:35:06 +00:00
Oleg Kalnichevski
68855c40f4
HTTPCLIENT-1484: GzipCompressingEntity should not close the underlying output stream if the entity has not been fully written out due to an exception
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1578440 13f79535-47bb-0310-9956-ffa450edef68
2014-03-17 15:34:41 +00:00
Oleg Kalnichevski
09027e7286
HTTPCLIENT-1478: deprecated SSLSocketFactory ignores socket timeout parameter during SSL handshake
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1576362 13f79535-47bb-0310-9956-ffa450edef68
2014-03-11 14:16:43 +00:00