When I do this:
url = 'http://www.example.com' values = {'name' : 'Michael Foord', 'location' : 'Northampton', 'language' : 'Python' } data = urllib.parse.urlencode(values) data = data.encode('utf-8') # data should be bytes req = urllib.request.Request(url, data) print(req) Using Python, I get this:
< urllib.request.Request object at 0x0000000002E8FF60 > What does it mean?
What happened to my req variable?
Could someone explain this to me?