import cherrypy
cherrypy.request
http://docs.cherrypy.org/api-reference#request
On Oct 30, 2006, at 4:52 PM, Jose Soares wrote:
>
> Hi all,
>
> I would like to know how to retrieve the cherrypy informations like
> the query_string of url, the server_url, the authenticated_user,
> cookies, etc.
> Something like the Zope REQUEST.
> -------------------------------------------------------------------
> QUERY_STRING 'PIPPO=ASS&NOME=ASASAS'
> AUTHENTICATED_USER jojo
> VirtualRootPhysicalPath ('',)
> AUTHENTICATION_PATH ''
>
> HTTP_COOKIE 'tip=""; daavt=""; marclne=""; not=""; key=""; csc="";
> dtpa=""; mod="0"'
> HTTP_ACCEPT_LANGUAGE 'it-it,it;q=0.8,en-us;q=0.5,en;q=0.3'
> REQUEST_METHOD 'GET'
> PATH_INFO '/matreco/my'
> SERVER_PROTOCOL 'HTTP/1.1'
> QUERY_STRING 'PIPPO=ASS&NOME=ASASAS'
> HTTP_ACCEPT_CHARSET 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
> HTTP_USER_AGENT 'Mozilla/5.0 (X11; U; Linux i686; it; rv:1.8.0.5)
> Gecko/20060731 Ubuntu/dapper-security Firefox/
> SERVER_NAME 'bandon.sofonia.com'
> REMOTE_ADDR '127.0.0.1'
> PATH_TRANSLATED '/matreco/my'
> SERVER_PORT '8080'
> HTTP_HOST 'localhost:8080'
> GATEWAY_INTERFACE 'CGI/1.1'
> HTTP_ACCEPT_ENCODING 'gzip,deflate'
>
> >
--
Kevin Dangoor
TurboGears / Zesty News
email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog: http://www.BlueSkyOnMars.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---