ninjadude12
asked on
how can i get POST GET variables from python?
how can i get POST GET variables from python?
It depends on the framework you're using.
I agree with mish.
Without further details it's difficult to help you.
Did you write a plain cgi script?
Or a wsgi script?
or do you use a more complex framework?
Without further details it's difficult to help you.
Did you write a plain cgi script?
Or a wsgi script?
or do you use a more complex framework?
ASKER
you dont need a framework to handle POST GET, ever herd of import cgi lol
Hi Ninjadude,
What we two experts tried to say is, that the way of accessing POST / GET contents depends on what application / framework you are running.
We experts heard of
import cgi (Refer for example to https://www.experts-exchange.com/questions/27217214/Python's-equivalent-to-PHP's-GET-request.html )
However this is not at all the correct response for somebody who's using other libraries / frameworks.
What we two experts tried to say is, that the way of accessing POST / GET contents depends on what application / framework you are running.
We experts heard of
import cgi (Refer for example to https://www.experts-exchange.com/questions/27217214/Python's-equivalent-to-PHP's-GET-request.html )
However this is not at all the correct response for somebody who's using other libraries / frameworks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
gelonida: who said i was using a framework?
Ninjadue,
You still did not explicitely say what you are using.
If you have a plain CGI script, then what is wrong with cgi.FieldStorage()
Do you want to make a distinction between the POST and GET variables or are you happy with a 'combined' answer.
You still did not explicitely say what you are using.
If you have a plain CGI script, then what is wrong with cgi.FieldStorage()
Do you want to make a distinction between the POST and GET variables or are you happy with a 'combined' answer.