This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Very simple HTTP server in python. | |
Usage:: | |
./dummy-web-server.py [<port>] [<file_to_serve>] [<content_type>] | |
Send a GET request:: | |
curl http://localhost -v | |
Send a HEAD request:: | |
curl -I http://localhost -v | |
Send a POST request:: |