Created
June 8, 2015 16:41
-
-
Save timsutton/5f59a6504e73a56a1478 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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