从post读取原始数据
介绍
有时候,浏览器会通过post发送很多数据。在webpy,你可以这样操作。
代码
class RequestHandler(object):
def POST(self):
data = web.data() # 通过这个方法可以取到数据
“Think about the ideal way to write a web app. Write the code to make it happen.” [more...] |
有时候,浏览器会通过post发送很多数据。在webpy,你可以这样操作。
class RequestHandler(object):
def POST(self):
data = web.data() # 通过这个方法可以取到数据