Forum Discussion
hooleylist
Dec 14, 2010Cirrostratus
A simpler option could be to append the payload to the redirect location. This assumes the client sends a URL encoded post data and the application accepts the parameters in the query string. It has the advantage of not looping through the parameters by name and not depending on Javascript.
when HTTP_REQUEST_DATA {
switch -glob [URI::decode [URI::query "?[HTTP::payload]" Relay]] {
"*/test2/*" {
HTTP::redirect "https://test.com/test2/login.aspx?[HTTP::payload]"
}
"*/test3/*" {
HTTP::redirect "https://test.com/test3/login.aspx?[HTTP::payload]"
}
}
}
Aaron