Skip to content

Commit b9ae8d6

Browse files
committed
Add logout requests in fire_requests
1 parent b995afb commit b9ae8d6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

contrib/load-tester/fire_requests.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ def main(targetIF, prefix, maxI):
3838
resp.read()
3939
except:
4040
pass
41+
conn = HTTPConnection(target, PORT, timeout=10, source_address=(source, 0))
42+
conn.connect()
43+
conn.request("GET", "/wifidog/auth?logout=1")
44+
try:
45+
resp = conn.getresponse()
46+
resp.read()
47+
except:
48+
pass
4149

4250

4351
# http://code.activestate.com/recipes/439094-get-the-ip-address-associated-with-a-network-inter/

0 commit comments

Comments
 (0)