add ssl line (commented) for stress script

This commit is contained in:
kakwa 2016-12-22 03:13:34 +01:00
parent 18100cee44
commit a60a6a295d
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
import httplib
import time
import os
import ssl
tsq_path = os.path.join(os.path.dirname(__file__),'example.tsq')
@ -14,6 +15,7 @@ counter=0
old_time = time.time()
while True:
h1 = httplib.HTTPConnection('localhost:2020')
#h1 = httplib.HTTPSConnection('localhost:2020', context=ssl._create_unverified_context())
h1.request('POST', '/', body, {"Content-Type": "application/timestamp-query"})
response = h1.getresponse()
h1.close()