Hello,
   I was wondering how to use HttpClient classes
and methods to get the value of a cookie.  I want
to fetch the cookie named "SessionID".  How would
I do that?  This is the code I have so far ...

           PostMethod method = new PostMethod(url);
            method.setFollowRedirects(true);    
       
            NameValuePair[] data = {
              new NameValuePair("user", "joe"),
              new NameValuePair("password", "bloggs")
            };
            method.setRequestBody(data);

            // execute request.

            // read response

            String sessionId = ???

            // Release the connection.
            method.releaseConnection();


Thanks for all help, Dave               


Care2 make the world greener!
Help the planet each day! It's free and easy:
http://www.Care2.com/dailyaction/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to