No description, website, or topics provided.
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build/lib/storedserver
storedserver
test
.gitignore
README.md
setup.py

README.md

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"}'

Retrieve the values in either html or csv as follows:

`curl http://localhost:8081/data.(csv|html)`

Start the server as follows:

python app.py port host

or with default values 8081 and 0.0.0.0:

python app.py

Install with the following:

sudo python setup.py install