Hi,

Cookies document at
http://jakarta.apache.org/commons/httpclient/cookies.html states
        <quote> HttpClient supports automatic management of cookies,
including allowing the server to set cookies and automatically return
them to the server when required. </quote>

        Do we have to make any special settings to enable this or will
the following code defaults to above?

HttpClient client = new HttpClient();
client.getState().setCookiePolicy(CookiePolicy.COMPATIBILITY);
HttpMethod method = new GetMethod(url);
Int statusCode = client.executeMethod(method);

Please feel free to point me to a document/link which can give more
information about the same.

        I am trying to connect to a website which needs cookie support
from the client. I am getting same response while trying to connect from
httpclient which I get when I access the site with cookies disabled in
my browser.
        
Regards,
Amit.


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

Reply via email to