Advertisement
Guest User

http://stackoverflow.com/questions/11322430/python-how-to-se

a guest
Jul 4th, 2012
3,888
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. from urllib import parse, request
  2. params = parse.urlencode({'@number': 12524, '@type': 'issue', '@action': 'show'})
  3. headers = {"Content-type": "application/x-www-form-urlencoded",
  4.            "Accept": "text/plain"}
  5. req = request.Request("http://bugs.python.org", params.encode('ascii'), headers)
  6. response = request.urlopen(req)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement