1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00
elinks/test/server/httpf.py
2022-04-24 09:53:42 +02:00

16 lines
311 B
Python
Executable File

#!/usr/bin/python3
#
# testing server for elinks http
#
PORT = 9452
import http.server
import socketserver
handler = http.server.SimpleHTTPRequestHandler
with socketserver.TCPServer(('127.0.0.1', PORT), handler) as httpd:
print("[*] http server started at localhost:" + str(PORT))
httpd.serve_forever()