getting rest of url path (after matching obj) from python script
Hello, is there a way to access URL path elements from python scripts? I am using a python script to inhibit acquisition and be able to use the rest of the URL path as a parameter (instead of using QUERY_STRING e.g.). That means i have a script called "frame" in the doc root and want to get the rest of the URL path: http://server.com/frame/rest/of/path using "return context.REQUEST.URL" just returns "http://server.com/frame" is there any way to get the rest of the URL? thanks --Oliver
aaaah, sorry for the disturbance. I discovered (part of) the solution now. The info I need is in the HTTP variables PATH_INFO and PATH_TRANSLATED. thanks for your attention oliver
is there a way to access URL path elements from python scripts? I am using a python script to inhibit acquisition and be able to use the rest of the URL path as a parameter (instead of using QUERY_STRING e.g.). That means i have a script called "frame" in the doc root and want to get the rest of the URL path: http://server.com/frame/rest/of/path
using "return context.REQUEST.URL" just returns "http://server.com/frame"
is there any way to get the rest of the URL?
Oliver Frommel wrote:
aaaah, sorry for the disturbance. I discovered (part of) the solution now. The info I need is in the HTTP variables PATH_INFO and PATH_TRANSLATED. thanks for your attention oliver
This is also bound by default to traverse_subpath in your python script. See Bindings->Subpath. Ivan
participants (2)
-
Ivan Cornell -
Oliver Frommel