发布时间:2019-08-30 09:29:51编辑:auto阅读(1936)
# -*- coding: utf-8 -*- import urllib2 # http发送报文 def httpsend(url, bw): req = urllib2.Request(url, bw) res_data = urllib2.urlopen(req) res = res_data.read() print(res) # 打出响应信息 if __name__ == "__main__": url = "http://20.0.1.157:30043/OMP" bw = '请求报文' httpsend(url, bw)
上一篇: Python能用来做什么?这3大主要用途
下一篇: python学习练习提高网址
47873
46437
37325
34767
29339
26002
24953
19971
19571
18065
5813°
6438°
5954°
5980°
7086°
5931°
5973°
6463°
6430°
7809°