From 0a8f6e5b53ba593310724776201544f6c1d360e7 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Tue, 5 Sep 2023 09:19:09 +0200 Subject: [PATCH] add curl notice --- src/miniweb.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/miniweb.py b/src/miniweb.py index 223a3dc..8b2eb49 100755 --- a/src/miniweb.py +++ b/src/miniweb.py @@ -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