add curl notice

This commit is contained in:
Christoph J. Scherr 2023-09-05 09:19:09 +02:00
parent 5ce6e095bc
commit 0a8f6e5b53
1 changed files with 6 additions and 2 deletions

View File

@ -14,6 +14,10 @@ class MyHandler(http.server.SimpleHTTPRequestHandler):
return io.BytesIO(body)
addtrss = ("127.0.0.1", 8080)
srv = http.server.HTTPServer(addtrss, MyHandler)
address = ("127.0.0.1", 8080)
srv = http.server.HTTPServer(address, MyHandler)
srv.serve_forever()
# To query your web server go to http://localhost:8080
# OR from CLI and with headers:
# $ curl localhost:8080 -v