Skip to content

Instantly share code, notes, and snippets.

View iamanikeev's full-sized avatar

Alexander Anikeev iamanikeev

View GitHub Profile
@iamanikeev
iamanikeev / dummy-web-server.py
Created November 29, 2018 11:11 — forked from bradmontgomery/dummy-web-server.py
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.
Usage::
./dummy-web-server.py [<port>]
Send a GET request::
curl http://localhost