ruby - How to use a CGI to redirect from an HTML page to another using POST? -
i want send parameters page via redirect using ruby cgi script; however, want post if possible (ie. not pass parameter string in url). have working using parameter string in url using code below.
def redirect( new_page ) print "location:#{new_page}\n\n" end redirect("apage.html?name=bla&something=else");
as far have been able research, have not found way this. 1 way around without doing html redirect open html file in cgi script , print when cgi generating html. catch here have url cgi script in address bar, may possible redirect using .htaccess (though can't sure if work).
hope helps! :-d
Comments
Post a Comment