Commit Graph

2792 Commits

Author SHA1 Message Date
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 87fae730d5 Use `dist: trusty` for Travis CI 2019-08-22 17:02:13 +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 22a6fa7d32 Updated release notes for HttpClient 4.5.9 release 2019-06-07 15:18:19 +02:00
Oleg Kalnichevski cacbc6b87f HTTPCLIENT-1991: incorrect handling of non-standard DNS entries by PublicSuffixMatcher 2019-06-01 15:53:42 +02:00
Oleg Kalnichevski e605ca0500
Merge pull request #146 from varunnvs92/4.5.x
Fix bug in URIBuilder#isPathEmpty method
2019-04-24 09:47:05 +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
Oleg Kalnichevski 70585fc2d5
Merge pull request #144 from mattnelson/HTTPCLIENT-1984
HTTPCLIENT-1984: Add normalize URI to RequestConfig copy constructor
2019-04-16 19:54:53 +02:00
Matt Nelson f27cffc3c3
HTTPCLIENT-1984: Add normalize URI to RequestConfig copy constructor 2019-04-16 12:00:27 -05:00
Oleg Kalnichevski 288699c0a8 Merge branch 'HTTPCLIENT-1976' into 4.5.x 2019-04-02 12:22:53 +02:00
Artem Smotrakov c8068487fb HTTPCLIENT-1976: Unsafe deserialization in DefaultHttpCacheEntrySerializer 2019-04-02 12:16:03 +02:00
Oleg Kalnichevski 2035aaed33 Upgraded HttpClient version to 4.5.9-SNAPSHOT 2019-03-30 10:35:49 +01:00
Oleg Kalnichevski cf80e9f30c Merge branch 'release-preparation' into 4.5.x 2019-03-25 16:32:06 +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
Oleg Kalnichevski 0185d66d18 Updated release notes for HttpClient 4.5.8 release 2019-03-25 15:20:25 +01:00
Oleg Kalnichevski 8ffa3194bf
Merge pull request #143 from gknapowski/4.5.x
Changed route tracking of proxy to not default to false
2019-03-18 09:16:56 +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
Oleg Kalnichevski ba1f444484
Merge pull request #140 from artem-smotrakov/filter-weak-ciphers
HTTPCLIENT-1969: Filter out weak cipher suites
2019-03-05 17:02:32 +01:00
Artem Smotrakov 9049eb0145 HTTPCLIENT-1969: Filter out weak cipher suites 2019-03-05 10:20:46 +01:00
Oleg Kalnichevski acd8fcd95f
Merge pull request #137 from ok2c/HTTPCLIENT-1968
URIBuilder and URIUtils improvements
2019-02-19 09:27:04 +01:00
Oleg Kalnichevski 7486865d76
Merge pull request #139 from asutosh936/HTTPCLIENT-1891
HTTPCLIENT-1891
2019-02-18 10:05:03 +01:00
asutosh936 37a60479ee HTTPCLIENT-1891 : Upgraded commons-codec version to 1.11 2019-02-17 19:11:25 -06: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 030dbffe17 Improved cache key generation (ported from HttpCore master) 2019-02-16 12:02:15 +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
Oleg Kalnichevski ae9ea60195
Merge pull request #136 from cstamas/HTTPCLIENT-1968
HTTPCLIENT-1968
2019-02-16 11:55:29 +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 09385e2c93
Merge pull request #138 from ok2c/bug-fixes
Test code improvement
2019-02-16 11:35:51 +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 77cbf6c9f4 Merge branch 'PR-134' into 4.5.x 2019-02-07 19:17:36 +01:00
Jayson Raymond d150f5abae Some well known proxies respond with Content-Length=0, when returning 304. For robustness, always use the cached entity's content length, as modern browsers do. 2019-02-07 19:15:52 +01:00
Oleg Kalnichevski f24e6847fb Fixed javadoc errors 2019-01-25 09:27:02 +01:00
Oleg Kalnichevski 20b168326f Updated the set of project report generated by Maven 2019-01-24 16:03:28 +01:00
Oleg Kalnichevski fc4644de9e Upgraded HttpClient version to 4.5.8-SNAPSHOT 2019-01-24 15:52:01 +01:00
Oleg Kalnichevski 56d7f5b4eb Updated release notes for HttpClient 4.5.7 release 2019-01-20 13:22:09 +01:00
Oleg Kalnichevski babe96dda8 Merge branch 'java11-compatibility' into 4.5.x 2019-01-19 14:25:13 +01:00
Oleg Kalnichevski ac773f89f0 Added oraclejdk8 and openjdk11 to Travis-CI build matrix 2019-01-19 11:45:44 +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 aae6a9b3c9 Updated NOTICE to 2019 2019-01-19 10:12:04 +01:00
Oleg Kalnichevski 63f64b6801 Upgraded HttpCore to version 4.4.11 2019-01-19 10:11:37 +01:00