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 and client pair in python. | |
Server based on: https://gist.github.com/bradmontgomery/2219997 | |
Usage:: | |
./server-http.py start [<port>] | |
Send a message (on a second terminal) :: | |
./server-http.py notify "hello world!" |
NewerOlder