1
0
mirror of https://github.com/balkian/gists.git synced 2024-11-21 17:22:29 +00:00
gists/Flask server that returns GET parameters and values /server.py
J. Fernando Sánchez f48bab94dd Move files
2021-10-30 15:23:01 +02:00

16 lines
320 B
Python

#!/usr/bin/python
from flask import Flask, request, Markup
app = Flask("prueba")
@app.route("/")
def home():
args = ("<pre>")
for i in request.args:
a = request.args[i]
args += u"{} [{}]: {}\n".format(i, Markup.escape(str(type(a))), a)
args += "</pre>"
return args
app.run(debug=True)