Re: [Htmlparser-developer] how to login website with cookie
Brought to you by:
derrickoswald
|
From: Marco Y. <yeu...@ho...> - 2009-06-30 16:54:56
|
If there is a login form (POST). How can we use htmlParser to login and get the cookie before passing it to parser? > Date: Sun, 28 Jun 2009 19:24:58 +0200 > From: der...@gm... > To: htm...@li... > Subject: Re: [Htmlparser-developer] how to login website with cookie > > 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 > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Htmlparser-developer mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-developer _________________________________________________________________ Show them the way! Add maps and directions to your party invites. http://www.microsoft.com/windows/windowslive/products/events.aspx |