title: Python urllib,urllib2 fill form
body: <p>I want to fill a HTML form with <code>urllib2</code> and <code>urllib</code>.</p>
  
  <pre><code>import urllib
  import urllib2
  
  url = 'site.com/registration.php'
  values = {'password' : 'password',
            'username': 'username'
            }
  
  data = urllib.urlencode(values)
  req = urllib2.Request(url, data)
  response = urllib2.urlopen(req)
  the_page = response.read()
  </code></pre>
  
  <p>But on the end of the form is a <code>button(input type='submit')</code>. If you don't click the button you can't send the data what you wrote in the <code>input(type text)</code></p>
  
  <p>How can I click the button with <code>urllib</code> and <code>urllib2</code>?</p>