We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,668 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Python 2.7 $_POST $_GET $_SESSION $_COOKIE

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.

3
Contributors
3
Replies
8 Hours
Discussion Span
5 Months Ago
Last Updated
4
Views
RLS0812
Newbie Poster
14 posts since Dec 2011
Reputation Points: 7
Solved Threads: 0
Skill Endorsements: 0

I think this howto is a good starting point.

Gribouillis
Posting Maven
Moderator
3,101 posts since Jul 2008
Reputation Points: 1,130
Solved Threads: 761
Skill Endorsements: 11

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

RLS0812
Newbie Poster
14 posts since Dec 2011
Reputation Points: 7
Solved Threads: 0
Skill Endorsements: 0

set/retrieve cookies.

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

pyTony
pyMod
Moderator
6,330 posts since Apr 2010
Reputation Points: 879
Solved Threads: 989
Skill Endorsements: 27

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0834 seconds using 2.73MB