request.args returns a MultiDict . It can have several values ββfor each key. To print all the parameters, you can try:
Below is the code for URLs with added parameters, for example:
http://www.webservice.my/rest?extraKey=extraValue multi_dict = request.args for key in multi_dict: print multi_dict.get(key) print multi_dict.getlist(key)
For parameters embedded in a POST request, in the form of a form:
dict = request.form for key in dict: print 'form key '+dict[key]
See an example here and you will have a good idea.
codegeek
source share