durusmail: quixote-users: scgi get value from QUERY_STRING
scgi get value from QUERY_STRING
2006-03-13
2006-03-13
scgi get value from QUERY_STRING
Tom Lesters
2006-03-13
I migrate from cgi to scgi,
But how to get the QUERY_STRING?
Like
/forum/?page=5,
get 5 from the url,

The following works on Quixote cgi server, but not scgi what's the scgi
equivalent to it?

import cgi
fs = cgi.FieldStorage()
page_no = fs['page'].value

googled and searched the scgi source code seems not finding FieldStorage.
should I search another term?  Or should these code work under scgi, there
must be some configuration problem on my side?

I'm using scgi 1.9, quixote 2.4, lighttpd 1.4.9 with mod_scgi

Thanks a bunch,
Tom

PS: I feel quixote missing a somewhat centralized website for people to
communicate, contribute and explain the relationship between QP, Quixote,
scgi, wscgi, etc., or everybody just controbute to quixote.ca and make it
more current? I've added some solution to my problems there.
reply