Julian Sedding
b99a5138cc
HTTPCLIENT-1772: [OSGi] WeakList needs to support "clear" method
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1762913 13f79535-47bb-0310-9956-ffa450edef68
2016-09-30 14:08:12 +00:00
Oleg Kalnichevski
07fe1b7cdb
HTTPCLIENT-1771: improve OSGi webconsole display for org.apache.http.proxyconfigurator
...
Contributed by Julian Sedding <jsedding at apache.org>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1762114 13f79535-47bb-0310-9956-ffa450edef68
2016-09-24 08:52:15 +00:00
Oleg Kalnichevski
baf7e10e78
HTTPCLIENT-1770: OSGi metatype for org.apache.http.proxyconfigurator missing factoryPid
...
Contributed by Julian Sedding <jsedding at apache.org>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1762113 13f79535-47bb-0310-9956-ffa450edef68
2016-09-24 08:52:03 +00:00
Oleg Kalnichevski
49fee5cf4e
HTTPCLIENT-1767: Null pointer dereference in EofSensorInputStream and ResponseEntityProxy
...
EofSensorInputStream is generating NullPointerExceptions in some rare situations. This commit fixes that behaviour for the check methods by dereferencing the instance variable to a final local variable to ensure that if it is not null at the null guard, that it will be not null after that point also to successfully close/abort the stream
In some rare cases, null parameters are sent to ReponseEntityProxy methods, this adds checks on those to ensure that the connections are still released, but the null variable is not dereferenced.
Contributed by Peter Ansell <p_ansell@yahoo.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1760586 13f79535-47bb-0310-9956-ffa450edef68
2016-09-13 18:33:02 +00:00
Oleg Kalnichevski
8b5642ae92
Support changing system default ProxySelector
...
Contributed by Robin Stevens <stevensro at gmail.com>
The `ProxySelectorRoutePlanner` class which got deprecated in favor of the `SystemDefaultRoutePlanner` could deal with:
- `null` as default `ProxySelector`
- a change in the default `ProxySelector`
This change ports that behavior to the `SystemDefaultRoutePlanner`.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1758107 13f79535-47bb-0310-9956-ffa450edef68
2016-08-28 13:03:02 +00:00
Oleg Kalnichevski
7870698373
Typo in comment
...
Contributed by Robin Stevens <stevensro at gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1758105 13f79535-47bb-0310-9956-ffa450edef68
2016-08-28 12:47:29 +00:00
Oleg Kalnichevski
f638eec16b
All services registered in the OSGi service registry provide the whole bundle header dictionary as vendor property value.
...
Contributed by Christoph Fiehe <christoph.fiehe at materna.de>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1756279 13f79535-47bb-0310-9956-ffa450edef68
2016-08-13 15:40:07 +00:00
Oleg Kalnichevski
d2b106f8a0
HTTPCLIENT-1760: added protected methods to enumerate leased and available connections to PoolingHttpClientConnectionManager
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1756277 13f79535-47bb-0310-9956-ffa450edef68
2016-08-13 15:28:07 +00:00
Oleg Kalnichevski
6e4a1bbbf1
HTTPCLIENT-1750: OSGi support for CachingHttpClientBuilder
...
Contributed by Justin Edelson <justin at justinedelson.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1747904 13f79535-47bb-0310-9956-ffa450edef68
2016-06-11 15:54:55 +00:00
Oleg Kalnichevski
df95271189
HTTPCLIENT-1749: OSGi client builder to use weak references to track HttpClient instances
...
Contributed by Justin Edelson <justin at justinedelson.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1747903 13f79535-47bb-0310-9956-ffa450edef68
2016-06-11 15:54:42 +00:00
Oleg Kalnichevski
900d96fbef
Fixed build breakage due to Java 1.6 incompatibility
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1747894 13f79535-47bb-0310-9956-ffa450edef68
2016-06-11 14:22:08 +00:00
Oleg Kalnichevski
5a9a842d23
HTTPCLIENT-1747: apply RequestConfig defaults when using HttpParams values in backward compatibility mode
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1747724 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 14:38:35 +00:00
Oleg Kalnichevski
b9ffaad9c7
Override LaxRedirectStrategy's INSTANCE field
...
Surprisingly LaxRedirectStrategy.INSTANCE returns the instance of
DefaultRedirectStrategy. Override the INSTANCE field to return
LaxRedirectStrategy instead. Also add unit tests to LaxRedirectStrategy.
Contributed by Eric Wu <ericwuyi at gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1746752 13f79535-47bb-0310-9956-ffa450edef68
2016-06-03 19:43:48 +00:00
Oleg Kalnichevski
324218e8e6
HTTPCLIENT-1746: improved argument validation in URLEncodedUtils
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1746749 13f79535-47bb-0310-9956-ffa450edef68
2016-06-03 19:30:30 +00:00
Oleg Kalnichevski
572fd4cd9c
HTTPCLIENT-1736: do not request cred delegation by default when using Kerberos auth
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1746747 13f79535-47bb-0310-9956-ffa450edef68
2016-06-03 19:21:14 +00:00
Oleg Kalnichevski
b52a623ccf
Cleaned up comments
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1745909 13f79535-47bb-0310-9956-ffa450edef68
2016-05-28 17:02:01 +00:00
Oleg Kalnichevski
951d6d1bfd
HTTPCLIENT-1744: normalize hostname and certificate CN when matching to CN
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1745908 13f79535-47bb-0310-9956-ffa450edef68
2016-05-28 17:01:12 +00:00
Oleg Kalnichevski
cbf517ace6
HTTPCLIENT-1732: SystemDefaultCredentialsProvider to take http.proxyHost and http.proxyPort system properties into account
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1737485 13f79535-47bb-0310-9956-ffa450edef68
2016-04-02 10:26:41 +00:00
Oleg Kalnichevski
7e38f831d5
HTTPCLIENT-1730: javadoc improvements
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1736192 13f79535-47bb-0310-9956-ffa450edef68
2016-03-22 14:05:37 +00:00
Oleg Kalnichevski
1b41b52b14
Revert "HTTPCLIENT-1712: SPNego schemes to take service scheme into account when generating auth token"
...
This reverts commit 1d50c1a1a1
.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1735108 13f79535-47bb-0310-9956-ffa450edef68
2016-03-15 15:26:32 +00:00
Oleg Kalnichevski
8f3829334d
HTTPCLIENT-1729: javadoc fix
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1733927 13f79535-47bb-0310-9956-ffa450edef68
2016-03-07 13:52:07 +00:00
Gary D. Gregory
eda8dc5d32
[HTTPCLIENT-1727] org.apache.http.impl.client.AbstractHttpClient#createClientConnectionManager Does not account for context class loader.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1733406 13f79535-47bb-0310-9956-ffa450edef68
2016-03-03 01:59:34 +00:00
Oleg Kalnichevski
7663e6a596
HTTPCLIENT-1726: Copy the SNI fix from SSLConnectionSocketFactory to the deprecated SSLSocketFactory class.
...
Signed-off-by: David Black <dblack@atlassian.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1733362 13f79535-47bb-0310-9956-ffa450edef68
2016-03-02 20:47:19 +00:00
Gary D. Gregory
5a60e7f948
Comment empty blocks.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1733179 13f79535-47bb-0310-9956-ffa450edef68
2016-03-01 22:40:20 +00:00
Gary D. Gregory
0cb0a3dea1
Remove useless semicolon.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1733178 13f79535-47bb-0310-9956-ffa450edef68
2016-03-01 22:36:44 +00:00
Oleg Kalnichevski
85b0047f6e
Upgraded HttpClient version to 4.5.3-SNAPSHOT
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1732457 13f79535-47bb-0310-9956-ffa450edef68
2016-02-26 11:39:03 +00:00
Oleg Kalnichevski
2ee82b5d80
Upgraded HttpCore to version 4.4.4
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1731535 13f79535-47bb-0310-9956-ffa450edef68
2016-02-21 15:35:44 +00:00
Oleg Kalnichevski
a29cda6687
Updated NOTICE.txt
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1731534 13f79535-47bb-0310-9956-ffa450edef68
2016-02-21 15:35:37 +00:00
Oleg Kalnichevski
1c7ce79722
Updated release notes for HttpClient 4.5.2
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1731529 13f79535-47bb-0310-9956-ffa450edef68
2016-02-21 13:28:43 +00:00
Oleg Kalnichevski
600b4cadf3
Javadoc fix
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1731528 13f79535-47bb-0310-9956-ffa450edef68
2016-02-21 13:28:24 +00:00
Gary D. Gregory
04fb7e6d8e
[HTTPCLIENT-1665] Regression in org.apache.http.entity.mime.MultipartEntity and org.apache.http.entity.mime.content.StringBody. Use ASCII when charset is null.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1731313 13f79535-47bb-0310-9956-ffa450edef68
2016-02-19 23:33:14 +00:00
Oleg Kalnichevski
96c4a55029
HTTPCLIENT-1718, HTTPCLEINT-1719: credentials fix to allow proxy authetication
...
Contributed by 212427891 <munene.kiruja at ge.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1730836 13f79535-47bb-0310-9956-ffa450edef68
2016-02-17 13:54:29 +00:00
Gary D. Gregory
3cde2e432d
[HTTPCLIENT-1717] Make fluent API .Content.Content(byte[], ContentType) public.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1728787 13f79535-47bb-0310-9956-ffa450edef68
2016-02-06 03:09:01 +00:00
Gary D. Gregory
d730041f0a
Javadoc typo.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1728602 13f79535-47bb-0310-9956-ffa450edef68
2016-02-05 04:53:53 +00:00
Gary D. Gregory
ac5e71b6aa
Add final modifier to local variables.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1726971 13f79535-47bb-0310-9956-ffa450edef68
2016-01-27 09:04:42 +00:00
Gary D. Gregory
9d5dde271f
Add final modifier to private fields.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1726967 13f79535-47bb-0310-9956-ffa450edef68
2016-01-27 09:00:25 +00:00
Gary D. Gregory
8a27962f79
Add missing @Override annotations.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1726962 13f79535-47bb-0310-9956-ffa450edef68
2016-01-27 08:51:00 +00:00
Gary D. Gregory
fb27bd7353
Add missing @Deprecated annotations.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1726958 13f79535-47bb-0310-9956-ffa450edef68
2016-01-27 08:43:17 +00:00
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
6c46f1952b
HTTPCLIENT-1710 - fixes - examine all exceptions, correct capture groups count
...
Contributed by 212427891 <munene.kiruja at ge.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1722632 13f79535-47bb-0310-9956-ffa450edef68
2016-01-02 14:15:43 +00:00
Oleg Kalnichevski
da60349c5f
Fix number or format arguments in OSGiProxyConfiguration
...
The format string requires 6 arguments while 7 are provided.
From the format string it is clear that the first argument has
been added by mistake.
Contributed by Michiel Eggermont <michiel.eggermont at gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1721386 13f79535-47bb-0310-9956-ffa450edef68
2015-12-22 12:36:10 +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