you can use the same as after the request:
import urllib import urllib2 params = urllib.urlencode({'hello':'there', 'foo': 'bar'}) urllib2.urlopen('http://somesite.com/get?' + params)
The second argument should only be provided when making POST requests, for example, when sending the content type application/x-www-form-urlencoded .
felipsmartins
source share