Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 17 lines (11 sloc) 0.318 kb
0d40881 @ohsc edit
ohsc authored
1 ---
2 layout: default
2d05223 @ohsc edit
ohsc authored
3 title: 从post读取原始数据
0d40881 @ohsc edit
ohsc authored
4 ---
5
2d05223 @ohsc edit
ohsc authored
6 # 从post读取原始数据
0d40881 @ohsc edit
ohsc authored
7
2d05223 @ohsc edit
ohsc authored
8 ## 介绍
0d40881 @ohsc edit
ohsc authored
9
a3c2649 @wangbing edit
wangbing authored
10 有时候,浏览器会通过post发送很多数据。在webpy,你可以这样操作。
0d40881 @ohsc edit
ohsc authored
11
12
2d05223 @ohsc edit
ohsc authored
13 ## 代码
0d40881 @ohsc edit
ohsc authored
14
15 class RequestHandler():
16 def POST():
2d05223 @ohsc edit
ohsc authored
17 data = web.data() # 通过这个方法可以取到数据
Something went wrong with that request. Please try again.