R
ravi
hi,
i am using org.apache.commons.httpclinet api to authenticate the
server.
i am using the following code.
client.getState().setCredentials("FORM","http://localhost:8080/admin",
new UsernamePasswordCredentials("username","pwd"));
GetMethod get = new
GetMethod("http://localhost:8080/admin/frameset.jsp");
get.setDoAuthentication( true );
int status = client.executeMethod( get );
System.out.println(status + "\n" + get.getResponseBodyAsString());
instead of getting the frameset.jsp i am getting the login.jsp.I
don't whether
it is authentication failure or not. can someone help me on this.
regards
ravi
i am using org.apache.commons.httpclinet api to authenticate the
server.
i am using the following code.
client.getState().setCredentials("FORM","http://localhost:8080/admin",
new UsernamePasswordCredentials("username","pwd"));
GetMethod get = new
GetMethod("http://localhost:8080/admin/frameset.jsp");
get.setDoAuthentication( true );
int status = client.executeMethod( get );
System.out.println(status + "\n" + get.getResponseBodyAsString());
instead of getting the frameset.jsp i am getting the login.jsp.I
don't whether
it is authentication failure or not. can someone help me on this.
regards
ravi