1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-03 08:07:17 -05:00
elinks/test/server/httpf.py

16 lines
311 B
Python
Raw Normal View History

#!/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()