I am using httpclient api and i want to make request using httpclient .how we will set login details using httpclient
below is the sample code
HttpClient client = null;
// System.getProperties().setProperty("httpclient.use ragent",
//"Mozilla/4.0");
client = new HttpClient(new MultiThreadedHttpConnectionManager());
//url = MiscHelper.toAbsoluteUrl(this.baseUrl, url);
GetMethod get = new GetMethod(url);
get.setRequestHeader("User-Agent","Mozilla/4.0 (compatible; MSIE 8.0; Windows 2000)");