A minimal HTTP server in python. It sends a JSON Hello World for GET requests, and echoes back JSON for POST requests.
python server.py 8009
Starting httpd on port 8009...
curl http://localhost:8009
{"received": "ok", "hello": "world"}
#!/usr/bin/env python | |
#coding: utf-8 | |
# | |
# Run this file with superuser rights ('sudo') to install the Signal client | |
raw_input("Welcome to the signal-cli install wizard.\nPress ENTER when you are ready.") | |
import os | |
A minimal HTTP server in python. It sends a JSON Hello World for GET requests, and echoes back JSON for POST requests.
python server.py 8009
Starting httpd on port 8009...
curl http://localhost:8009
{"received": "ok", "hello": "world"}