发布时间:2019-08-20 07:47:09编辑:auto阅读(2277)
基于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 - 函数
54810
41600
36179
31631
26535
26238
24764
20348
16303
15728
2807°
2569°
2657°
2801°
2748°
2977°
2882°
2726°
2727°
2701°