{
HttpProtocolParams.setVersion(paramHttpParams, HttpVersion.HTTP_1_1);
HttpProtocolParams.setContentCharset(paramHttpParams, HTTP.DEF_CONTENT_CHARSET.name());
HttpConnectionParams.setTcpNoDelay(paramHttpParams, true);
HttpConnectionParams.setSocketBufferSize(paramHttpParams, 8192);
VersionInfo localVersionInfo = VersionInfo.loadVersionInfo("org.apache.http.client", DefaultHttpClient.class.getClassLoader());
String str = localVersionInfo != null ? localVersionInfo.getRelease() : "UNAVAILABLE";
HttpProtocolParams.setUserAgent(paramHttpParams, "Apache-HttpClient/" + str + " (java 1.5)");
}