def test(self, url, toHex=True):
try:
url = 'http://{}/{}'.format(self._ip, url)
print(url)
response = urlopen(
url, timeout=self.timeout).read()
if toHex:
response = response.encode('hex')
print(response)
except (HTTPError, URLError, socket.timeout) as e:
print(e)
评论列表
文章目录