• Home
  • History
  • Annotate
  • only in /external/apache-http/src/org/apache/http/impl/client/
History log of /external/apache-http/src/org/apache/http/impl/client/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
848b5edd4adadfbf7c9a97f74173592e3a80c361 23-Jan-2016 Chad Brubaker <cbrubaker@google.com> Use hostname aware isCleartextTrafficPermitted

The cleartext traffic blocking feature of
android.net.NetworkSecurityPolicy is being expanded to provide finer
grained controls (per hostname). This change integrates the Apache HTTP
stack with these finer grained controls.

Bug: 22666071
Change-Id: If557d7fbd4df708305fbb7656026fc366ac4bb6d
efaultRequestDirector.java
23c78a7d649e632852abb1f73ee36c117097c5c0 27-Mar-2015 Alex Klyubin <klyubin@google.com> Honor NetworkSecurityPolicy regarding cleartext traffic.

This makes HttpClient instances honor the process-wide policy about
cleartext network traffic. If cleartext network traffic is not
permitted, then attempts to send a cleartext HTTP request will throw
an IOException.

This change is needed despite platform-provided HttpClient being
deprecated because a large fraction of applications still use this
HttpClient library to generate HTTP traffic instead of using
URLConnection.

HttpClient is modular -- most of its parts can be replaced with
alternative implementations. Thus, this CL enforces the cleartext
traffic policy in DefaultRequestDirector because RequestDirector is
least commonly replaced (if ever) and there are no other
RequestDirector implementations provided by the library.

The cleartext policy is enforced pretty late in the process of
emitting a request to give time for any HttpRequestInterceptor
instances to see the request. This is because some apps use a
HttpRequestInterceptor to enforce their own policies about cleartext
HTTP such as catching accidental use of cleartext HTTP and reporting
it to their servers for analysis.

Bug: 19215516
Change-Id: I03687123080475581e7196d9bb8c0d006502d056
efaultRequestDirector.java
1cbd67d91edfcedbfd28aac75c1c616ced66ab4a 28-Jan-2015 Elliott Hughes <enh@google.com> am c7fe4b37: Merge "Fix @link annotation in documentation for hyperlink generation"

* commit 'c7fe4b3752acbf8a183fa6d4e07bc2acbb3448fd':
Fix @link annotation in documentation for hyperlink generation
7fa8bfcff1357a9ef2b371fadde712275786e0b9 28-Jan-2015 Ruey-Shi Rau <timrau@gmail.com> Fix @link annotation in documentation for hyperlink generation

Change-Id: Ia01f2d4d523b2fbb3ed227f003218841e00e608c
Signed-off-by: Ruey-Shi Rau <timrau@gmail.com>
asicResponseHandler.java
d42abb2fd917184764daf22f5f299e848b8701d7 23-Oct-2014 Narayan Kamath <narayan@google.com> Deprecate apache-http.

bug: 18067888
Change-Id: I8d830c20e952734e2bb63da1e785094b7a783308
bstractAuthenticationHandler.java
bstractHttpClient.java
asicCookieStore.java
asicCredentialsProvider.java
asicResponseHandler.java
lientParamsStack.java
efaultConnectionKeepAliveStrategy.java
efaultHttpClient.java
efaultHttpRequestRetryHandler.java
efaultProxyAuthenticationHandler.java
efaultRedirectHandler.java
efaultRequestDirector.java
efaultTargetAuthenticationHandler.java
efaultUserTokenHandler.java
ntityEnclosingRequestWrapper.java
edirectLocations.java
equestWrapper.java
outedRequest.java
unnelRefusedException.java
b975b95b02a5ae8e9e0f909c9ad39d61ba55fed4 15-Dec-2011 Jesse Wilson <jessewilson@google.com> Advertise HttpURLConnection in DefaultHttpClient.

Change-Id: I97a1a139fbe95cf63b1f921daea9e4c55c118a7f
efaultHttpClient.java
6c9d8c58d3ed710f87c26820d903bb8aad81754f 28-Sep-2011 Jesse Wilson <jessewilson@google.com> Fix NPE in DefaultRequestDirector

When the HTTP client encountered a server failure while
talking through a proxy, it fails with an NullPointerException
and not an IOException.

Bug: http://b/5372438
Change-Id: I67848d52f5d01c9e353fcc7d66d48ec821d9b4ba
efaultRequestDirector.java
2d8fd9bea30efcae4cc418e223f2c61febe0caa0 07-Jan-2011 Jesse Wilson <jessewilson@google.com> Help the caller along if a malformed URI is used to make an HTTP request.

We had problems where we gave a cryptic error when the user's request
URL like "www.example.org/api/json/get_stuff" is interpretted as a relative
path rather than a fully qualified address:
java.lang.IllegalStateException: Target host must not be null, or set in parameters.

The new message breaks the address into parts to make this more clear:
java.lang.IllegalStateException: Target host must not be null, or set in parameters. scheme=null, host=null, path=www.example.org/api/json/get_stuff

Change-Id: Ie102718dc15b92d68835f1c34b538639f500eeaa
http://code.google.com/p/android/issues/detail?id=9929
efaultRequestDirector.java
843bcb6f4f65c0cdca327c6467813b88c52042f3 03-Jan-2011 Brian Carlstrom <bdc@google.com> DefaultRequestDirector should ignore IOExceptions from stale connections

The DefaultRequestDirector was letting IOExceptions from closing stale
connections affect new requests. However, it was very common to
received "SSL shutdown failed" exceptions in this case, since an SSL
"close notify" message could not be sent. Now these and other
IOExceptions are ignored so the request can continue with a new
socket.

Bug: 3317717
Change-Id: I72f6f4a8f70aacb8b4c3e93c51e9808742d1a605
efaultRequestDirector.java
3dafdc28e38c2720a85d8581b068e09e709ac434 07-Dec-2010 Jesse Wilson <jessewilson@google.com> Merge "Use proxies specified by system properties in DefaultHttpClient."
e7c14c45c80070fee70451deb8a0a53de66e5a43 07-Dec-2010 Jesse Wilson <jessewilson@google.com> Use proxies specified by system properties in DefaultHttpClient.

Change-Id: Ic05f450a301d5478ff3a8f03af56ac0c0dbe3620
http://b/3254717
efaultHttpClient.java
f0035c0e7077bc2d7a8aaf6516d96b0d2b1ba22d 03-Dec-2010 Brian Carlstrom <bdc@google.com> Set per request socket timeout on reused connections

Even though SoTimeout, TcpNoDelay, and SoLinger can be specified per
request in HttpParams, these values are only set on the underlying
socket in the DefaultRequestDirector when ManagedClientConnection.open
is called to create a new connection. On reused connection, no setting
of Socket options was being done.

There does not seem to be an easy way to fix this without changing one
or more APIs but for the timeout case at least, we can use the fact
that the ManagedClientConnection is an HttpConnection which has a
setSocketTimeout method.

Bug: 3241899
Change-Id: I080147b017b961502b3ba98d40841fea679491eb
efaultRequestDirector.java
166ed46d7e5312857b8a9b8d07c00373c596c1b3 18-Aug-2010 Brian Carlstrom <bdc@google.com> Cherry picking changes from dalvik-dev

git cherry-pick --no-commit 5648c97be2c515bdafeff3d8a4b07ea0ddc3e357
git cherry-pick --no-commit ffdb1757
git cherry-pick --no-commit 9340bb2a4b5f828b418c0e77492dde148623c938
git cherry-pick --no-commit af5c56d1

Change-Id: Ie910601ca27e1fcff90bbf0db5bd522bab8924f7
efaultHttpClient.java
069490a5ca2fd1988d29daf45d892f47ad665115 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
bstractAuthenticationHandler.java
bstractHttpClient.java
asicCookieStore.java
asicCredentialsProvider.java
asicResponseHandler.java
lientParamsStack.java
efaultConnectionKeepAliveStrategy.java
efaultHttpClient.java
efaultHttpRequestRetryHandler.java
efaultProxyAuthenticationHandler.java
efaultRedirectHandler.java
efaultRequestDirector.java
efaultTargetAuthenticationHandler.java
efaultUserTokenHandler.java
ntityEnclosingRequestWrapper.java
edirectLocations.java
equestWrapper.java
outedRequest.java
unnelRefusedException.java
ackage.html
e5d9544310b857f3ee9ec172bdbff8077323f9a1 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
bstractAuthenticationHandler.java
bstractHttpClient.java
asicCookieStore.java
asicCredentialsProvider.java
asicResponseHandler.java
lientParamsStack.java
efaultConnectionKeepAliveStrategy.java
efaultHttpClient.java
efaultHttpRequestRetryHandler.java
efaultProxyAuthenticationHandler.java
efaultRedirectHandler.java
efaultRequestDirector.java
efaultTargetAuthenticationHandler.java
efaultUserTokenHandler.java
ntityEnclosingRequestWrapper.java
edirectLocations.java
equestWrapper.java
outedRequest.java
unnelRefusedException.java
ackage.html
417f3b92ba4549b2f22340e3107d869d2b9c5bb8 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
bstractAuthenticationHandler.java
bstractHttpClient.java
asicCookieStore.java
asicCredentialsProvider.java
asicResponseHandler.java
lientParamsStack.java
efaultConnectionKeepAliveStrategy.java
efaultHttpClient.java
efaultHttpRequestRetryHandler.java
efaultProxyAuthenticationHandler.java
efaultRedirectHandler.java
efaultRequestDirector.java
efaultTargetAuthenticationHandler.java
efaultUserTokenHandler.java
ntityEnclosingRequestWrapper.java
edirectLocations.java
equestWrapper.java
outedRequest.java
unnelRefusedException.java
ackage.html