Browse files


  • Loading branch information...
1 parent 31c7c19 commit ac2c5ac12628b93d981ab175e572b841c0d2abc1 agibsonccc committed Mar 13, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5
@@ -1,16 +1,16 @@
Python HTTP Server example
Leveraging BaseHTTPServer, this is a server that stores data posted to it in memory via POST requests as follows:
- curl -XPOST http://localhost:8081 -H "Content-Type:application/json" -d '{"data2":"val"}'
+ `curl -XPOST http://localhost:8081 -H "Content-Type:application/json" -d '{"data2":"val"}'`
Retrieve the values in either html or csv as follows:
- curl http://localhost:8081/data.(csv|html)
+ `curl http://localhost:8081/data.(csv|html)`
Start the server as follows:
- python port host
+ `python port host`
or with default values 8081 and
- python
+ `python`
Install with the following:
- python install
+ `python install`

0 comments on commit ac2c5ac

Please sign in to comment.