From c777eeb985a8f4c2dfa4ca208c973b436d5cf0e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Wed, 25 Feb 2015 15:37:47 -0500 Subject: [PATCH] --- server.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 server.py diff --git a/server.py b/server.py new file mode 100644 index 0000000..a28af53 --- /dev/null +++ b/server.py @@ -0,0 +1,15 @@ +#!/usr/bin/python +from flask import Flask, request, Markup + +app = Flask("prueba") + +@app.route("/") +def home(): + args = ("
")
+    for i in request.args:
+        a = request.args[i]
+        args += u"{} [{}]: {}\n".format(i, Markup.escape(str(type(a))), a)
+    args += "
" + return args + +app.run(debug=True)