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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -