#coding:utf-8

import web

urls = (
    '/(.*)', 'hello'
    )

app = web.application(urls, globals())

class hello:
    def GET(self, name):
        print 'name is:', name
        client = [web.ctx.env.get('HTTP_REFERER', 'http://baidu.com'),
                                  web.ctx.ip, web.ctx.host,
                                  web.ctx.status, web.ctx.headers]
        return client

if __name__ == "__main__":
    app.run()
