thanks for all your help. hossman is exactly right, it's not sensitive data but merely the equivalent to building a watch that doesn't expose the clockwork. hmm, i will conclude from your various comments that there is no straight solution per se. any option that is not 100% compatible is out (javascript, 307 redirect etc..) i'm now thinking to go with LWP::Agent after all using the forwarded url, even though it will not actually forward, the results seem to be the same:
require LWP::UserAgent;
$ua = LWP::UserAgent->new;
my $req = HTTP::Request->new(POST => $forwarded_url);
$req->content_type('application/x-www-form-urlencoded');
$req->content($parameters_from_input);
my $res = $ua->request($req);
print "Content-type: text/html\n\n";
print $res->content;
exit;
Only thing is, i remember reading somewhere that there might be some problems with headers and cookies etc. I'm testing it right now and cant see anything obvious. Caution flags anyone?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.