import urllib2

req = urllib2.Request("http://localhost:8080")
res = urllib2.urlopen( req )
headers = str(res.info())
print(headers)
html=res.read()
print(html)

相关文章:

  • 2021-10-12
  • 2021-08-11
  • 2021-11-24
  • 2022-12-23
  • 2021-04-26
  • 2021-12-04
  • 2022-01-07
  • 2022-12-23
猜你喜欢
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案