in reply to Re^9: Shortest/quickest way for Perl to take POST data it receives and send a POST request with this data to another URL?
in thread Shortest/quickest way for Perl to take POST data it receives and send a POST request with this data to another URL?
FTR, my code is a few lines shorter than the LWP example zentara gave, does more (meaning it's more verbose than necessary), and doesn't use the problematic CGI->Vars which joins multi-values with null bits which aren't considered/handled in the example.
Personally, I wouldn't be looking to use CGI or PSGI.
Installing and invoking either behemoth to decode headers and post data, only to then exactly re-encode them for the forwarded request seems a futile exercise, when you can easily arrange for most serious webservers to re-write or re-direct the url without need for any code. And the very definition of technical debt.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: Shortest/quickest way for Perl to take POST data it receives and send a POST request with this data to another URL?
by Your Mother (Archbishop) on Nov 06, 2013 at 23:38 UTC | |
by BrowserUk (Patriarch) on Nov 07, 2013 at 03:51 UTC | |
by Your Mother (Archbishop) on Nov 07, 2013 at 05:16 UTC |