Re: [Htmlparser-developer] how to login website with cookie
Brought to you by:
derrickoswald
|
From: Derrick O. <der...@gm...> - 2009-06-30 17:14:20
|
An explaination of how to use POST is available on the FAQ page: http://htmlparser.sourceforge.net/faq.html#post 2009/6/30 Marco Yeung <yeu...@ho...>: > 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 > > ________________________________ > See all the ways you can stay connected to friends and family > ------------------------------------------------------------------------------ > > _______________________________________________ > Htmlparser-developer mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-developer > > |