Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: 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 05, 2013 at 19:06 UTC ( [id://1061358]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    plackup /home/moo/post-echo.psgi -r
    Watching /home/moo/lib /home/moo/post-echo.psgi for file updates.
    HTTP::Server::PSGI: Accepting connections at http://0:5000/
    
  2. or download this
    moo@cow[2258]~>curl http://0:5000/
    OHAI GET
    ...
    Content-Type: application/x-www-form-urlencoded
    
    internet=cats in tubes
    
  3. or download this
    curl http://0:5000/ -F code=@/home/moo/post-echo.psgi
    POST http://example.org/
    Expect: 100-continue
    ...
        }
        $response->finalize;
    };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1061358]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-09-08 23:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.