1,105,391 Community Members

Python 2.7 $_POST $_GET $_SESSION $_COOKIE

Member Avatar
RLS0812
Newbie Poster
22 posts since Dec 2011
Reputation Points: -3 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

What is the Python (2.7) equivalent of the PHP $_POST, $_GET, $_SESSION and $_COOKIE, and how are they used ?

After almost 2 years of trying I have finally gotten Python to work on my WAMP server - only to find that it is severely lacking in web page functionality.

Member Avatar
Gribouillis
Posting Maven
3,454 posts since Jul 2008
Reputation Points: 1,140 [?]
Q&As Helped to Solve: 884 [?]
Skill Endorsements: 18 [?]
Moderator
 
0
 

I think this howto is a good starting point.

Member Avatar
RLS0812
Newbie Poster
22 posts since Dec 2011
Reputation Points: -3 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

That covers CGI ... unfortuinatly does not cover how to transfer information from one web page to the next, nor how to set/retrieve cookies.

Member Avatar
pyTony
pyMod
6,103 posts since Apr 2010
Reputation Points: 818 [?]
Q&As Helped to Solve: 1,056 [?]
Skill Endorsements: 42 [?]
Moderator
Featured
 
0
 

set/retrieve cookies.

Why not cookielib? http://docs.python.org/2/library/cookielib.html#examples

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: