Link to home
Start Free TrialLog in
Avatar of ninjadude12
ninjadude12

asked on

how can i get POST GET variables from python?

how can i get POST GET variables from python?
Avatar of mish33
mish33
Flag of United States of America image

It depends on the framework you're using.
Avatar of gelonida
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?
Avatar of ninjadude12
ninjadude12

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.
ASKER CERTIFIED SOLUTION
Avatar of gelonida
gelonida
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.