cis: bug fixes
[living-lab-site.git] / cis / https_test.py
diff --git a/cis/https_test.py b/cis/https_test.py
new file mode 100644 (file)
index 0000000..7a22427
--- /dev/null
@@ -0,0 +1,20 @@
+import web
+from web.wsgiserver import CherryPyWSGIServer
+
+CherryPyWSGIServer.ssl_certificate = "cacert.pem"
+CherryPyWSGIServer.ssl_private_key = "privkey.pem"
+
+urls = ("/.*", "hello")
+app = web.application(urls, globals())
+
+
+class hello:
+    def GET(self):
+        return "Hello, world!"
+
+    def POST(self):
+        print web.data()
+
+
+if __name__ == "__main__":
+    app.run()