Skip to content

Instantly share code, notes, and snippets.

@bradmontgomery
bradmontgomery / dummy-web-server.py
Last active Sep 28, 2020
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
View dummy-web-server.py
#!/usr/bin/env python
"""
Very simple HTTP server in python (Updated for Python 3.7)
Usage:
./dummy-web-server.py -h
./dummy-web-server.py -l localhost -p 8000
Send a GET request:
You can’t perform that action at this time.