If rp_handler is serving a POST request for a host-node mapped subsite, POST variables can be lost. This happens in case 2 below. The GET variables are gathered from [ns_conn request] and included in a redirection. However, POST variables are not passed on.
# 2. handle special case: if the root is a prefix of the URL,
# remove this prefix from the URL, and redirect.
if { $root ne "" } {
if { [regexp "^${root}(.*)$" $url match url] } {
if { [regexp {^GET [^\?]*\?(.*) HTTP} [ns_conn request] match vars]\
} {
append url ?$vars
}
if { [security::secure_conn_p] } {
# it's a secure connection.
...
} else {
ad_returnredirect \
-allow_complete_url http://[ad_host][ad_port]$url
return "filter_return"
}
}
Is rp_form_put the correct proc to use to pass along POST variables in this case?
Request notifications