Hi, I need to log into a web page as i would in my desktop. The webpage contains a forum which is only accessible to registered users and i need to be able to read it from my android. I have found the bit that handles the user login from the page's source but i can't create the right POST with HttpUtils2. I cannot post the webpage url but here's the code that matters (i believe):
Thanks in advance
HTML:
<!-- Form login -->
<div id="btl-content-login" class="btl-content-block">
<!-- if not integrated any component -->
<form name="btl-formlogin" class="btl-formlogin" action="/" method="post">
<div id="btl-login-in-process"></div>
<h3>Login to your account</h3>
<div class="spacer"></div>
<div class="btl-error" id="btl-login-error"></div>
<div class="btl-field">
<div class="btl-label">Username *</div>
<div class="btl-input">
<input id="btl-input-username" type="text" name="username" />
</div>
</div>
<div class="btl-field">
<div class="btl-label">Password *</div>
<div class="btl-input">
<input id="btl-input-password" type="password" name="password" alt="password" />
</div>
</div>
<div class="clear"></div>
<div class="btl-field">
<div class="btl-input" id="btl-input-remember">
<input id="btl-checkbox-remember" type="checkbox" name="remember"
value="yes" />
Remember Me </div>
</div>
<div class="clear"></div>
<div class="btl-buttonsubmit">
<input type="submit" name="Submit" class="btl-buttonsubmit" onclick="return loginAjax()" value="Σύνδεση" />
<input type="hidden" name="option" value="com_users" />
<input type="hidden" name="task" value="user.login" />
<input type="hidden" name="return" id="btl-return" value="aW5kZXgucGhwP0l0ZW1pZD0xMjQ=" />
<input type="hidden" name="d103917b31d6c557373b1661d4270741" value="1" /> </div>
</form>
Thanks in advance