Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Is there a way to seamlessly repost HTTP Post data into a new URL through the browser? I can use LWP to get the data, but instead of getting an LWP response and printing it, I'd like to just post the data to that page after I've intercepted it...

Writing a tracking script, and need a "waystation" inbetween a form post and its destination... instead of posting to http://www.perlmonks.com, I need to post to /scripts/tracker.pl and then have tracker.pl do the post operation to http://www.perlmonks.com (without having tracker.pl parse the http post response and display it, but actually passing the data along to perlmonks.com invisibly...)
hope I make sense, since I make little cents...

tanks:barry
open(HELP,"perl.monks|");

Replies are listed 'Best First'.
Re: Invisible HTTP Post Redirect
by sauoq (Abbot) on Oct 15, 2002 at 22:27 UTC

    No. You can't redirect a POST, at least not by telling the browser to rePOST to another site. You would have to capture and rePOST yourself, essentially acting like a proxy.

    -sauoq
    "My two cents aren't worth a dime.";