I have used org.apache.commons.httpclient.HttpClient for the first one and org.apache.http.impl.client.DefaultHttpClient for the second. for both codes i'm getting response codes 200 ok. it is happening even when i remove username n pwd fields. So i'm not logging in... 1) HttpClient client = new HttpClient(); GetMethod get = new GetMethod("https://control.akamai.com"); System.out.println(client.executeMethod(get)); System.out.println("now login"); PostMethod method; method = new PostMethod("https://control.akamai.com/EdgeAuth/login.jsp?"); method.addParameter("username", "akshay"); method.addParameter("password", ...