Re: [Htmlparser-developer] how to login website with cookie
Brought to you by:
derrickoswald
|
From: Derrick O. <der...@gm...> - 2009-06-28 17:25:02
|
Try looking at the thread "Unable to enable cookies" in the Help forum: https://sourceforge.net/forum/message.php?msg_id=5852557 basically: parser.getConnectionManager().setRedirectionProcessingEnabled(true); parser.getConnectionManager().setCookieProcessingEnabled(true); then you need to set the cookie before fetching the page: parser.getConnectionManager().setCookie (Cookie cookie, String domain) where you have alreday made a cookie, see org.htmlparser.http.Cookie and domain is like "google.com" 2009/6/28 Marco Yeung <yeu...@ho...>: > Hi, > > I want to HTMLParser to parse the content of a webpage that requires login > and maintains cookies. > How can I use htmlparser to do that ? > > > Rdgs > Marco > > ________________________________ > Invite your mail contacts to join your friends list with Windows Live > Spaces. It's easy! Try it! > ------------------------------------------------------------------------------ > > _______________________________________________ > Htmlparser-developer mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-developer > > |