title: How can I fill in a form on a web page in Android?
body: <p>How would you fill in a form on a webpage (not under my control) in an Android program?</p>
  
  <p>I want to write a little android program to automate interacting with a website that someone else has written and I can't change. It has no published API. So the process is:</p>
  
  <ol>
  <li>Fetch the web page with a form on it (eg a login page)</li>
  <li>Parse it (eg find the username, password box on the page)</li>
  <li>Do some processing (eg fetch a username and password from a database)</li>
  <li>Submit the form back and get the result (eg simulate the user hitting login)</li>
  <li>Repeat ...</li>
  </ol>
  
  <p>It is step 4 I'd like the help with. If I wasn't using Android I'd use a library library like libcurl (for python) or apache httpclient (for normal java), or I'd do some DOM interaction with a webbrowser. What would you recommend doing for android? Is there something built into the standard libraries you'd recommend?</p>
  
  <p>I'm a pretty experienced Java programmer but all I've written in Android is hello world, if that affects your answer.</p>