See The LWP cookbook.
/J\
In reply to Re: Spoofing an HTTP POST by gellyfish in thread Sending information via HTTP "POST" without submitting a form by jeyroz