title: How to intercept POST data in an android webview
body: <p>I have an android app that consists of a webview. It needs to allow users to fill in a form on a webpage and then change the data of the form after the user has clicked <code>submit</code> on the form. The form will use the POST request method. </p>
  
  <p>So my question is, <strong>how can I intercept the POST data from the form, change it's values, then send it along?</strong></p>
  
  <p>For example: If there's a web form like this...</p>
  
  <pre><code>&lt;form action="http://www.example.com/do.php" method="post"&gt;
      &lt;input type="text" name="name" /&gt;
      &lt;input type="text" name="email" /&gt;
      &lt;input type="submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>If the user enters name = Steve and email = steve@steve.com in the form, I want to change the values to name = bob and email = bob@bob.com in the android app and have the new POST be sent to <code>http://www.example.com/do.php</code>.</p>
  
  <p>Thanks for your help!</p>