|Problems? Is your data what you think it is?|
Re: Shortest/quickest way for Perl to take POST data it receives and send a POST request with this data to another URL?by BrowserUk (Pope)
|on Nov 05, 2013 at 06:57 UTC||Need Help??|
I need a script to receive a POST request and then to send that same POST request to a different script. I don't mean that this is a redirect; the script simply notifies another script.
In theory, the first script could just immediately exec the second script. The second script would inherit the same environment (ie. CONTENT_LENGTH) and STDIN (from which it can read the POST data).
This would be very simple & efficient. The first script would (in theory) need be nothing more than:
But then, what would be the point? Why not just put the code from the second script in the first avoid the need for the exec?
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.