Code example for DefaultHttpClient

Methods: getConnectionManager

	 * @param sslSocketFactory 
	 *            the socket factory to use for https requests. 
	public void setSSLSocketFactory(SSLSocketFactory sslSocketFactory)
				.register(new Scheme("https", sslSocketFactory, 443));
	 * Sets headers that will be added to all requests this client makes (before 
	 * sending). 
	 * @param header 
	 *            the name of the header 
	 * @param value 
	 *            the contents of the header 
	public void addHeader(String header, String value)
Stop searching for code, let great code find you!  Add Codota to your java IDE