In webpy, the form of data access web.input or web.data general use?

Webpy, post form data web.input or web.data for general use?
Two what is the difference between them?
The general who is better? Thank thank

Started by Ignativs at February 03, 2016 - 9:02 PM

class RequestHandler():
def POST():
data = web.data() # you can get data use this method


Posted by Stuart at February 07, 2016 - 9:56 PM

I know this
But web.input can also be ah what are the differences between the two?

Posted by Ignativs at January 06, 2017 - 8:24 PM

web.input(),Acquiring the URL parameter, the return value is similar to the key-value on the dictionary, can be used for GET and POST.
web.data(),Gets the solid body, the return value is a string, can only be used for POST.

web.data():
web.input():

PS: people have been using input, simple, direct, convenient

Posted by Rupert at January 08, 2017 - 7:50 PM

from

Posted by Grace at January 09, 2017 - 7:55 PM