Skip to content

Instantly share code, notes, and snippets.

@timsutton
Created June 8, 2015 16:41
Show Gist options
  • Save timsutton/5f59a6504e73a56a1478 to your computer and use it in GitHub Desktop.
Save timsutton/5f59a6504e73a56a1478 to your computer and use it in GitHub Desktop.
from flask import Flask, request
app = Flask(__name__)
@app.route('/', methods=['POST'])
def get_post_data():
if request.method == 'POST':
data = request.values
print "%s: %s: %s" % (data['serial'], data['status'], data['message'])
return ""
if __name__ == '__main__':
app.debug = True
app.run(host='0.0.0.0')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment