Last change
on this file since 3662 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
File size:
374 bytes
|
Line | |
---|
1 | import SimpleHTTPServer |
---|
2 | import BaseHTTPServer |
---|
3 | |
---|
4 | class SimpleXiamHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): |
---|
5 | def do_POST(self): |
---|
6 | self.send_response(200,'OK') |
---|
7 | cl = int(self.headers['content-length']) |
---|
8 | print self.rfile.read(cl) |
---|
9 | |
---|
10 | |
---|
11 | httpd = BaseHTTPServer.HTTPServer(("", 10010), SimpleXiamHandler) |
---|
12 | |
---|
13 | print 'listen port 10010' |
---|
14 | httpd.serve_forever() |
---|
Note: See
TracBrowser
for help on using the repository browser.