Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib2, urllib
- def request(url,data,cookie):
- headers = {"Cookie": cookie}
- req = urllib2.Request(url, data, headers)
- response = urllib2.urlopen(req).read()
- return response
Advertisement
Add Comment
Please, Sign In to add comment