Forum Discussion
Kevin_Stewart
Sep 08, 2022Employee
The following should do the job:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/authorize/" } {
HTTP::redirect "https://xxx.baz.com[HTTP::uri]"
}
}
[HTTP::uri] captures the entire URI path, ex.
/authorize/aaa/bbb/someFile.jsp?response_type=abc&client_id=def&scope=ghi&redirect_uri=jkl
HTTP::path] captures the URI without the querystring, ex.
/authorize/aaa/bbb/someFile.jsp
[HTTP::query] captures just the querystring, ex.
response_type=abc&client_id=def&scope=ghi&redirect_uri=jkl