1

I'm trying to analyse different ways of Python connection to webserver: cgi, fastcgi, mod_python, WSGI, and Django framework... So, how many ways exist to parse get/post parameters in python? Are they differ from one connection to another?

I saw this question. CGI, Django etc. are considered there. But what about fastCGI? Is it the same way as CGI? And mod_python, WSGI?

I take interest in the most usable, 'popular' ways of getting request parameters. It can be parsing of particular parameter (name=value) or entire query string parsing.

Where I can read about different APIs? There are so many connection methods and frameworks, so I get confused(

Thanks a lot! Nikolai.

Community
  • 1
  • 1
MTuner
  • 437
  • 1
  • 6
  • 14
  • 1
    I found [this tutorial](http://webpython.codepoint.net/), it gave me some answers about mod_python and WSGI. Are they correct? And what about fastCGI? And can I import cgi and use parseqs() in mod_python, for example? – MTuner Oct 16 '11 at 15:10

1 Answers1

2

urlparse.parseqs[l]() is used to parse parameters. But you likely won't have to do it yourself since the framework (if you're using one) will handle them.

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358
  • Thanks, I saw this method. I take interest in both 'backend' and 'framework' methods. And I don't understand, are these methods vary with different connections. – MTuner Oct 16 '11 at 15:41