add httptest
This commit is contained in:
parent
3ad97402f1
commit
3a1c1798d1
17
scripts/httptest/httptest.py
Normal file
17
scripts/httptest/httptest.py
Normal file
@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import os
|
||||
import sys
|
||||
import json
|
||||
import time
|
||||
import urllib.parse
|
||||
import urllib.request
|
||||
from optparse import OptionParser
|
||||
|
||||
def do_test():
|
||||
req = urllib.request.Request('http://127.0.0.1:9002/webapp/index.php?c=Ops&a=selfChecking1')
|
||||
data = urllib.request.urlopen(req).readall()
|
||||
print(data)
|
||||
|
||||
while True:
|
||||
do_test()
|
||||
time.sleep(.1)
|
Loading…
x
Reference in New Issue
Block a user