发布时间:2019-08-20 07:47:09编辑:auto阅读(1941)
基于Jenkins接口测试
# coding = utf-8
import httplib
http_client = None
http_client = httplib.HTTPConnection('localhost' , 8080 , timeout=30)
http_client.request('GET' , '/jenkins/api/json')
response = http_client.getresponse()
print response.status #返回状态码
print response.read() #读出返回信息
上一篇: Python中SQL——LIKE中的%
下一篇: python - 函数
51714
51373
41805
38578
33058
30070
28738
23733
23645
22013
2228°
2914°
2436°
2384°
2954°
2386°
3193°
5246°
5059°
3612°