S
Size: a a a
W
АЖ
ДО
MK
def get_url(url, values = ''):
try:
data = urllib.urlencode(values)
req = urlreq.Request(url + "?" + data)
print req.get_full_url()
print req.get_method()
print dir(req) # list lots of other stuff in Request
resp = urlreq.urlopen(req)
print resp.read()
except IOError as e:
print "Error: ", e
url = "http://127.0.0.1:8090/playlist"
values = {'hash':"68c7c98c36b911d3a4de68730c9a18f28e1aab59"}
r3 = get_url(url, values)
print(r3)
🅨
def get_url(url, values = ''):
try:
data = urllib.urlencode(values)
req = urlreq.Request(url + "?" + data)
print req.get_full_url()
print req.get_method()
print dir(req) # list lots of other stuff in Request
resp = urlreq.urlopen(req)
print resp.read()
except IOError as e:
print "Error: ", e
url = "http://127.0.0.1:8090/playlist"
values = {'hash':"68c7c98c36b911d3a4de68730c9a18f28e1aab59"}
r3 = get_url(url, values)
print(r3)
ВР
MK