Getting the full URL of the REQUEST.
28 May
2003
28 May
'03
4:58 p.m.
Hi, Is there a simple way to get the *full* URL (the one shown in the browser, including the query) REQUEST.URL stops before that query. Many thanks in advance --Gilles
28 May
28 May
5:41 p.m.
New subject: [Zope] Re: Getting the full URL of the REQUEST.
Gilles Lenfant wrote:
Hi,
Is there a simple way to get the *full* URL (the one shown in the browser, including the query)
REQUEST.URL stops before that query.
A simple PythonScript should do the job: URL = context.REQUEST.get('URL') QUERY_STRING = context.REQUEST.get('QUERY_STRING') if QUERY_STRING: return "%s?%s" % (URL, QUERY_STRING) else: return URL Cheers, Maik
8349
Age (days ago)
8349
Last active (days ago)
1 comments
2 participants
participants (2)
-
Gilles Lenfant -
Maik Jablonski