From: Belorion Date: 2006-02-10T02:03:55+09:00 Subject: Passing POST params from one rhtml to another ------=_Part_9653_21542959.1139504618374 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Greetings everyone. I am faced with a rather tricky problem. I have mod_ruby/eRuby going on Apache, and have the following situation: I have an outer rhtml file which, using the open-uri library, opens up a remote rhtml file from one of my other servers to dump the contents inside the outer rhtml. In other words, I have 1 rhtml wrapping another one from my other remote site. Unfortunately, I also need to pass POST data from a form to the inner rhtml. So, the outer rhtml recieves the POST data and can be used using CGI.new, but I don't know how to pass the same post data to the inner rhtml file. I was doing this previously by simply doing some URL rewriting (?blah=3D1&foo=3D2, etc), but that doesn't work anymore because one of the = form field values contains lots of spaces and other erroneous characters that make Apache barf: request failed: erroneous characters after protocol string: Does anyone know of anyway to POST the data to the inner rhtml file instead of passing it along inside the URL? Unfortunately, directly invoking ERB will not work as the file is not locally available (hence the loading up vi= a open-uri). I've also tried executing url_encode from the ERB library to encode the URL into readable form, but the CGI barfs on my inner rhtml because instead of CGI.params looking like this: { "foo"=3D>1} it looks like this {"foo=3D1"=3D>nil } (the encoded form of the URL: url_encode( "?foo=3D1") gives "foo%3d1") Any suggestions? Thanks. Matt p.s. Y ------=_Part_9653_21542959.1139504618374--