Don Thorp's Library tagged → View Popular, Search in Google
"Ok, I feel silly coming back to answer my own question, but I figured it out, for anyone who might want to use httpclient 4.x:
The important thing is that your HttpPost must use the BasicHttpParams and can’t have useExpectContinue set to true. This is what caused a 417 Expectation Failed response for me.
Like this:
// >> Set Hostname
hostname = “twitter.com”;
// >> HttpParams
HttpParams params = new BasicHttpParams();
// NOTE This following line cannot set true or you get error 417 Expectation Failed.
HttpProtocolParams.setUseExpectContinue(params, false);
HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
standardHttpPostParams = params;
// >> AuthScope
authScope = new AuthScope(hostname, 80);
// >> Credentials
credentials = new UsernamePasswordCredentials(username, password);
// >> Client
client = new DefaultHttpClient(getStandardPostParams());
applyCredentials(client);"
"Android will run on many different devices in many different regions, and used by speakers of many different languages. To reach the most users in the most effective way, developers will want to localize their applications to the native languages spoken by the users they wish to reach. This document explains how to localize an Android application.
"
Selected Tags
Related Tags
Top Contributors
Groups interested in android
-
Google Phone
Items: 7 | Visits: 108
Created by: Toshiro Shimura
-
WebKit and the Future of the Open Web
WebKit is an advanced HTML-C...
Items: 26 | Visits: 106
Created by: Gary Edwards
-
Android Education
Items: 5 | Visits: 56
Created by: Shelly Terrell
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo
