title: unable to send data using urllib and urllib2 (python)
body: <p>Hello everybody (first post here).</p>
  
  <p>I am trying to send data to a webpage. This webpage request two fields (a file and an e-mail address) if everything is ok the webpage returns a page saying "everything is ok" and sends a file to the provided e-mail address. I execute the code below and I get nothing in my e-mail account.</p>
  
  <pre><code>import urllib, urllib2
  
  params = urllib.urlencode({'uploaded': open('file'),'email': 'user@domain.com'})
  req = urllib2.urlopen('http://webpage.com', params)
  print req.read()
  </code></pre>
  
  <p>the print command gives me the code of the home page (I assume instead it should give the code of the "everything is ok" page).</p>
  
  <p>I think (based o google search) the poster module should do the trick but I need to keep dependencies to a minimum, hence I would like a solution using standard libraries (if that is possible).</p>
  
  <p>Thanks in advance.</p>