Post request without the form by Servlet

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stepby
    New Member
    • Aug 2007
    • 12

    Post request without the form by Servlet

    Hi All,

    I would like to ask how to post the data without the form. What I want to do is that there are 2 web site -- webA , webB.
    I want to try doing the login integration for webA and webB. After user login the webA successfully, username and password will store in session or cookie. And then post the the username and password to webB to do the auto login.
    So, I want like to ask how to make a post request to webB by java(Servlet)

    Thanks,
    stepby
  • pronerd
    Recognized Expert Contributor
    • Nov 2006
    • 392

    #2
    Check out the Jakarta Commons HTTP Client. It will let you do this.
    http://hc.apache.org/httpclient-3.x/

    Comment

    Working...