Commit Graph

1224 Commits

Author SHA1 Message Date
Ryan Schmitt e0416f07c3 DefaultHostnameVerifier: Match DNS and CN names against ICANN domains
This change ensures that during hostname verification the public suffix
list is only used to prevent wildcard matching against entire TLDs (e.g.
`*.com`). Currently, private domains are also being matched against,
which is preventing reasonable wildcards (such as
`*.s3.eu-central-1.amazonaws.com`) from being respected.
2020-01-07 22:41:44 +01:00
Oleg Kalnichevski 541783d446 HTTPCLIENT-2033: connection managers to immediately shut down all leased connection upon shutdown 2019-12-05 09:45:36 +01:00
Michael Osipov 352f04ea9f HTTPCLIENT-2020: DefaultBackoffStrategy should include TOO_MANY_REQUESTS (429) too 2019-11-27 13:11:34 +01:00
Niels Basjes 858946348f HTTPCLIENT-2030: Fix PublicSuffixMatcher::getDomainRoot on invalid hostnames 2019-11-26 14:11:20 +01:00
Oleg Kalnichevski 332a7ae919 HTTPCLIENT-2029: URIBuilder to support parsing of non-UTF8 URIs 2019-11-14 16:43:14 +01:00
Oleg Kalnichevski 232ed81d56 HTTPCLIENT-2026: Fixed URIBuilder#isOpaque() logic 2019-11-11 09:29:27 +01:00
chao chang 0f66609ec2 update text in pool stats description
total kept alive -> total available
2019-11-10 15:41:43 +01:00
Ryan Schmitt b184b244ad Fix fallback PublicSuffixMatcher 2019-10-02 15:48:28 -07:00
Oleg Kalnichevski 94dec12105 Upgraded HttpClient version to 4.5.11-SNAPSHOT 2019-09-09 11:40:16 +02:00
Gary Gregory 6acbd61466 Remove extra parens. 2019-09-05 09:23:27 +02:00
Gary Gregory a91b9ff848
Refactor DefaultRedirectStrategy for subclassing. (#164)
- Adds the constructor DefaultRedirectStrategy(String[]) to construct a new instance to redirect the given HTTP methods.
- The default constructor now calls the String[] constructor.
- Reimplement the LaxRedirectStrategy default constructor to call DefaultRedirectStrategy(String[]).

All of this allows for new custom subclasses of DefaultRedirectStrategy to provide their own array of HTTP methods to redirect.
2019-08-31 10:26:48 -04:00
Jang Ryeol 62f2164b89 Modify RequestConfig Javadoc
Cleaned up duplicate sentences and addeded 'system default if applicable' from getSocketTimeout comment
2019-08-28 09:36:19 +02:00
Oleg Kalnichevski 4365c5242d Improved handling of request cancellation 2019-08-22 16:43:56 +02:00
Oleg Kalnichevski 779bb8c53b Fixed concurrent use of threading unsafe HttpUriRequest messages 2019-08-22 16:08:12 +02:00
jeromedemangel c1e2339f0f HTTPCLIENT-1997: Return the last domain segment instead of normalized domain name from PublicSuffixMatcher#getDomainRoot in case there is no match 2019-06-27 17:35:57 +02:00
Oleg Kalnichevski 94fc91dae2 Preserve original encoding of the URI path component if the URI is valid 2019-06-18 16:59:37 +02:00
Oleg Kalnichevski 6992339b6c Upgraded HttpClient version to 4.5.10-SNAPSHOT 2019-06-11 11:12:49 +02:00
Oleg Kalnichevski cacbc6b87f HTTPCLIENT-1991: incorrect handling of non-standard DNS entries by PublicSuffixMatcher 2019-06-01 15:53:42 +02:00
Varun Nandi 8f6df7259a Fix bug in URIBuilder#isPathEmpty method to verify if encodedPath is an empty string 2019-04-23 16:35:15 -07:00
Matt Nelson f27cffc3c3
HTTPCLIENT-1984: Add normalize URI to RequestConfig copy constructor 2019-04-16 12:00:27 -05:00
Oleg Kalnichevski 2035aaed33 Upgraded HttpClient version to 4.5.9-SNAPSHOT 2019-03-30 10:35:49 +01:00
Oleg Kalnichevski 2ecf72567d TLS_KRB5_EXPORT_WITH_RC4_40_SHA cipher and TLSv1.2 cause a deadlock during TLS handshake on Java 1.6. Newer JREs do not seem to be affected. 2019-03-25 15:50:42 +01:00
Greg Knapowski c8a224184e Changed route tracking of proxy to not default to false and instead to
use the routes secure value and not Tunneling. This allow secure routes
to proxies and not tunnel/CONNECT.
2019-03-13 13:59:05 -05:00
Artem Smotrakov 9049eb0145 HTTPCLIENT-1969: Filter out weak cipher suites 2019-03-05 10:20:46 +01:00
Oleg Kalnichevski 0fe3106dff HTTPCLIENT-1968: Fixed incorrect @since annotations 2019-02-16 15:29:47 +01:00
Oleg Kalnichevski c798539563 HTTPCLIENT-1968: Fixed broken API compatibility with 4.4 2019-02-16 13:27:25 +01:00
Oleg Kalnichevski 2004eef668 HTTPCLIENT-1968: Preserve escaped PATHSAFE characters when normalizing URI path segments 2019-02-16 13:22:40 +01:00
Oleg Kalnichevski be77dc917f DefaultRedirectStrategy to use URIUtils#normalizeSyntax method to normalize redirect location URI 2019-02-16 13:06:07 +01:00
Oleg Kalnichevski 4a463ebf4e URI normalization code to use URLEncodedUtils#parsePathSegments method to split path segments 2019-02-16 13:06:07 +01:00
Oleg Kalnichevski 4a976e104e HTTPCLIENT-1968: URIBuilder to split path component into path segments when digesting a URI (ported from HttpCore master) 2019-02-16 13:04:27 +01:00
Oleg Kalnichevski 5f37506e7a HTTPCLIENT-1968: added utility methods to parse and format URI path segments (ported from HttpCore master) 2019-02-16 12:02:15 +01:00
Tamas Cservenak 4093a3015d HTTPCLIENT-1968: Make normalization of URI paths optional
Make it driven by RequestConfig.
2019-02-16 11:50:11 +01:00
Oleg Kalnichevski 361b276095 Tweaked expected exception check in FutureRequestExecutionService test (ported from HttpClient master) 2019-02-16 11:27:44 +01:00
Oleg Kalnichevski f24e6847fb Fixed javadoc errors 2019-01-25 09:27:02 +01:00
Oleg Kalnichevski fc4644de9e Upgraded HttpClient version to 4.5.8-SNAPSHOT 2019-01-24 15:52:01 +01:00
Oleg Kalnichevski 47df3352fd Tweaked SSL test cases to make them pass with Java 11 2019-01-19 10:46:48 +01:00
Oleg Kalnichevski 8c04c6ae5e HTTPCLIENT-1960: URIBuilder incorrect handling of multiple leading slashes in path component 2019-01-12 17:21:43 +01:00
Oleg Kalnichevski 024f692df3 Merge branch 'HTTPCLIENT-1958' into 4.5.x 2019-01-10 09:52:55 +01:00
Oleg Kalnichevski 9e561957d7 HTTPCLIENT-1958: PoolingHttpClientConnectionManager to throw ExecutionException in case of a lease operation cancellation instead of InterruptedException 2019-01-08 12:04:17 +01:00
Michael Osipov f04d81e302 [HTTPCLIENT-1952] Allow default User Agent to be disabled 2018-12-24 00:18:11 +01:00
Michael Osipov 1a8ad57a20 Improve HttpResponseException#getMessage()
The #getMessage() now properly consists of the status code as such and the
optional reason phrase. Moreover, the pure reason phrase can be retrieved
via #getReasonPhrase.

This closes #130
2018-12-24 00:03:12 +01:00
Alex Panchenko 20dfff12c4 replace empty HttpResponseException.message with statusCode 2018-12-19 14:20:52 +02:00
Oleg Kalnichevski 90f22e85ff HTTPCLIENT-1956: CONNECT overwrites the main request object in the HTTP context when requests are executed via a proxy tunnel 2018-12-17 16:37:20 +01:00
Jens Borgland 2ad70741e6 Better handling of http(s).proxyUser and http(s).proxyPassword 2018-12-13 11:18:11 +01:00
Oleg Kalnichevski e4ac7db52f Upgraded download-maven-plugin to version 1.2.1 2018-11-03 14:33:28 +01:00
Oleg Kalnichevski c4d6b3fe59 Upgraded HttpComponents Parent to version 11 2018-11-03 11:35:58 +01:00
Oleg Kalnichevski c04ffa17ce Added missing @deprecated javadoc tags; fixed style check violations 2018-11-03 11:34:35 +01:00
Oleg Kalnichevski e1a0227cfd HTTPCORE-561: added SSLSocket timeout test 2018-10-29 16:45:35 +01:00
Gary Gregory 7163bca467 Add org.apache.hc.client5.http.config.RequestConfig.toString() and
camcel-case an ivar.
2018-09-21 18:44:02 -06:00
Oleg Kalnichevski 46638fa7e1 Fixed call to get proxy auth state 2018-08-28 14:19:20 +02:00