summaryrefslogtreecommitdiffstats
path: root/src/org/apache/http/impl/client
Commit message (Collapse)AuthorAgeFilesLines
* Advertise HttpURLConnection in DefaultHttpClient.Jesse Wilson2011-12-151-32/+42
| | | | Change-Id: I97a1a139fbe95cf63b1f921daea9e4c55c118a7f
* Fix NPE in DefaultRequestDirectorJesse Wilson2011-09-271-1/+1
| | | | | | | | | 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
* Help the caller along if a malformed URI is used to make an HTTP request.Jesse Wilson2011-01-061-2/+16
| | | | | | | | | | | | | 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
* DefaultRequestDirector should ignore IOExceptions from stale connectionsBrian Carlstrom2011-01-021-1/+12
| | | | | | | | | | | | 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
* Merge "Use proxies specified by system properties in DefaultHttpClient."Jesse Wilson2010-12-061-3/+5
|\
| * Use proxies specified by system properties in DefaultHttpClient.Jesse Wilson2010-12-061-3/+5
| | | | | | | | | | Change-Id: Ic05f450a301d5478ff3a8f03af56ac0c0dbe3620 http://b/3254717
* | Set per request socket timeout on reused connectionsBrian Carlstrom2010-12-031-1/+7
|/ | | | | | | | | | | | | | | | 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
* Cherry picking changes from dalvik-devBrian Carlstrom2010-08-181-1/+8
| | | | | | | | | 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
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0320-0/+4026
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0320-4026/+0
|
* Initial ContributionThe Android Open Source Project2008-10-2120-0/+4026