Permalink
Browse files

update

  • Loading branch information...
1 parent 31c7c19 commit ac2c5ac12628b93d981ab175e572b841c0d2abc1 agibsonccc committed Mar 13, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 README.md
View
@@ -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 app.py port host
+ `python app.py port host`
or with default values 8081 and 0.0.0.0:
- python app.py
+ `python app.py`
Install with the following:
- python setup.py install
+ `python setup.py install`

0 comments on commit ac2c5ac

Please sign in to comment.