in reply to Re^10: 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?

I tend to agree. That was not the OP's question though and it is easy to imagine the real use case is not a straight-up proxy. And exploring Perl options is more fun, well, not so much today apparently, and edifying.

  • Comment on Re^11: Shortest/quickest way for Perl to take POST data it receives and send a POST request with this data to another URL?

Replies are listed 'Best First'.
Re^12: Shortest/quickest way for Perl to take POST data it receives and send a POST request with this data to another URL?
by BrowserUk (Patriarch) on Nov 07, 2013 at 03:51 UTC
    I tend to agree. That was not the OP's question though

    Really? I thought that was exactly what he asked for?

    A possible solution is, of course, to parse the data using CGI, then to form and send a POST request using LWP, but this seem un-Perl-like and inelegant. Surely there's a simpler solution?

    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.

      Now you’re just messing with me…

      Is there a way to take the request that was used to access a cgi script and turn it into an HTTP::Request object?