Login Facebook using Web-Harvest

Posted by parin on Stack Overflow See other posts from Stack Overflow or by parin
Published on 2010-06-14T11:30:33Z Indexed on 2010/06/14 11:32 UTC
Read the original article Hit count: 622

Filed under:

I tried to login Facebook using Web-Harvest. I used the following xml code to login

< ?xml version="1.0" encoding="UTF-8"?>
< config charset="ISO-8859-1">
< file action="write" path="homepage.xml" charset="UTF-8">
< html-to-xml>
< http method="post" url="http://www.facebook.com/login.php" cookie-policy="browser">
< http-param name="email">myemail
< http-param name="pass">mypassword
< /http>
< /html-to-xml>
< /file>

The homepage.xml (output) file contains the xml code for the login page of facebook along with the following lines:

< h2 class="main_message" id="standard_error">Cookies Required< /h2>< p class="sub_message" id="standard_explanation">Cookies are not enabled on your browser. Please adjust this in your security preferences before continuing.< /p>

I tried all the allowed values for cookie-policy in the http processor of the xml code but was unsuccessful.

© Stack Overflow or respective owner

Related posts about java