Skip to content

Instantly share code, notes, and snippets.

View hgcummings's full-sized avatar

Harry Cummings hgcummings

  • Softwire
  • London
View GitHub Profile
@andreisavu
andreisavu / http_serve.py
Created November 29, 2010 11:19
Dummy HTTP server useful for testing
#!/usr/bin/env python
""" Test HTTP Server
This script starts a http server that will respond to HTTP requests
with a predefined response.
Usage:
./http_server.py --port=8080 --code=404 --content="Page not Found"