Code example for DefaultHttpClient

Methods: setParams

0
		HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
		HttpProtocolParams.setContentCharset(params, "UTF_8");
		HttpProtocolParams.setUseExpectContinue(params, false);
		HttpProtocolParams.setUserAgent(params, getUserAgent());
 
		httpclient.setParams(params);
	} 
 
	public static PreyRestHttpClient getInstance(Context ctx) {
 
		_instance = new PreyRestHttpClient(ctx);
		return _instance;
 
	} 
 
	private static List<NameValuePair> getHttpParamsFromMap(Map<String, String> params) {
 
		List<NameValuePair> parameters = new ArrayList<NameValuePair>();
		for (Iterator<Map.Entry<String, String>> it = params.entrySet().iterator(); it.hasNext();) {
			Map.Entry<String, String> entry = it.next();
			String key = entry.getKey();