Hi,
I wanted to login to a website thru my application, For that i used

DefaultHttpClient client = new DefaultHttpClient();
HttpPost postmethod = new HttpPost("the url to submit the login data
and related parametrs");

//set header for the postmethos and executed the client,

but I am getting the response as "COOKIE NOT ENABLED IN YOUR BROWSER".
I could get all the cookies in
 List<Cookie> cookies = client.getCookieStore().getCookies();
But how can I post the cookie to the login url?

can I post the COOKIE obj as header , How is it done.?

 Please Help me with some sample code.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to