• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

request timeout error.

Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am programatically trying to login to app which uses JBOSS databaseserverloginmodule.
Following is the code:

PostMethod formPost = new PostMethod("http://localhost:8080/contextroot/j_security_check");
formPost.addRequestHeader("Referer", "http://localhost:8080/contextroot/myPage.do");
formPost.addParameter("j_username", "username");
formPost.addParameter("j_password", "password");

responseCode = httpConn.executeMethod(formPost.getHostConfiguration(),formPost);

String res = formPost.getStatusText();

but res above gets 408 http status which means request time out error.
Any clues how to handle this??
    Bookmark Topic Watch Topic
  • New Topic