2012-06-08, 06:28
I'm trying to figure out how to log into this page using mechanize: http://www.liverpoolfc.tv/scripts/logout.php
The relevant login code is:
Can anyone help get me started? I'm new to xbmc and am trying to work on my first addon.
The relevant login code is:
Code:
<form method="post" action="/scripts/login.php" id="login" autocomplete="off"><!-- set to top:95px if beta bar is visible -->
<fieldset id="login_fields">
<noscript>
<div id="loginnoscript">Javascript is off, but you may already be logged in!</div>
<input type="hidden" name="loginbtn" value="1" />
<input type="text" id="login_box_username" name="username" value="" />
<input type="password" autocomplete="false" id="login_box_password" name="password" value="" />
<input type="image" id="login_box_submit" src="http://assets1.lfcimages.com/images/lfctvo/login-btn.jpg" name="login" value="Login" />
<input type="hidden" name="ip" value="641ecc71315e2f0ed23a9d732792b27057" />
</noscript>
<script type="text/javascript">var js_ip_value = "641ecc71315e2f0ed23a9d732792b27057";</script>
</fieldset>
</form>