Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 23 lines (16 sloc) 370 Bytes
import web
urls = (
'/(.*)', 'hello'
)
app = web.application(urls, globals())
class hello:
def GET(self, name):
if not name:
name = 'World'
return 'Hello, ' + name + '!'
def POST(self, name):
data = web.data() # you can get data use this method
print data
return "hello"
if __name__ == "__main__":
app.run()
Something went wrong with that request. Please try again.