Python实现的多线程http压力测试代码

上传:lucio65774 浏览: 22 推荐: 0 文件:PDF 大小:37KB 上传时间:2020-12-30 19:56:03 版权申诉
本文实例讲述了Python实现的多线程http压力测试代码。分享给大家供大家参考,具体如下: # Python version 3.3 __author__ = 'Toil' import sys, getopt import threading def httpGet(url, file): import http.client conn = http.client.HTTPConnection(url) conn.request("GET", file) r = conn.getresponse() #print(r.getheaders()) while not
上传资源
用户评论