aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/yeshttpd.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/yeshttpd.py b/tools/yeshttpd.py
new file mode 100644
index 0000000..3642f2a
--- /dev/null
+++ b/tools/yeshttpd.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python
+
+# Web server returning always a kind message on GET requests
+
+import SimpleHTTPServer
+import BaseHTTPServer
+
+class Yeshttpd_handler(SimpleHTTPServer.SimpleHTTPRequestHandler):
+ def do_GET(self):
+ print "handle req"
+ self.wfile.write("Hello my dear")
+ return None
+
+if __name__ == '__main__':
+ BaseHTTPServer.test(Yeshttpd_handler, BaseHTTPServer.HTTPServer)