Isaac_105703
Jun 25, 2009Nimbostratus
iRule to maintain POST data for redirect
Hi there,
I have a web page that has username/password fields. A "login" button performs a POST of that data to a file on the site (/cgi-bin/login.cgi) for authentication.
I want to force all requests made for my cgi file to be sent over SSL.
Here's what I have so far:
when HTTP_REQUEST {
if {
[HTTP::uri] contains ".cgi"
} then {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
This doesn't work correctly. The client gets redirected fine, but the POST data is empty. Is there a way to capture that POST data and include it for the redirect?
Thanks,
-Isaac