I'm new to web.py
. I used PHP alot. In PHP, POST parameter and GET parameter is stored in different global variables
For example:
curl http://127.0.0.1/test?get_param1=1 -d 'post_param1=2'
In PHP you can get $_GET['get_param1']
is 1 and $_POST['post_param1']
is 2.
But it seems impossible to distinct GET/POST parameters in web.py
?
I can only use web.input()
to get GET/POST parameters in a dict-like object, but I cannot tell which of them is from the query string and which is from POST data