Code example for RequestUserAgent

0
		// Required protocol interceptors 
		httpproc.addInterceptor(new RequestContent());
		httpproc.addInterceptor(new RequestTargetHost());
		// Recommended protocol interceptors 
//		httpproc.addInterceptor(new RequestClientConnControl()); 
		httpproc.addInterceptor(new RequestUserAgent());
		httpproc.addInterceptor(new RequestExpectContinue());
		// HTTP state management interceptors 
		httpproc.addInterceptor(new RequestAddCookies());
		httpproc.addInterceptor(new ResponseProcessCookies());
		// HTTP authentication interceptors 
		httpproc.addInterceptor(new RequestTargetAuthentication());
		httpproc.addInterceptor(new RequestProxyAuthentication());
		return httpproc;
	} 
 
	@Override 
	protected HttpRequestRetryHandler createHttpRequestRetryHandler() {
		return new DefaultHttpRequestRetryHandler();
	}