in reply to Re^6: A regexp from paypal
in thread A regexp from paypal
When you create your HTTP::Request object, instead of:
$req = new HTTP::Request 'POST','http://www.eliteweaver.co.uk/testing/ipntest.php';
Put your parameter hash in as the third argument (after you've added your new param):
$req = new HTTP::Request 'POST','http://www.eliteweaver.co.uk/testing/ipntest.php',$q->Vars;
You can then delete the next two lines,
as the content is set in the constructor, and the correct content_type is set by default.$req->content_type('application/x-www-form-urlencoded'); $req->content($q);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: A regexp from paypal
by davidov0009 (Scribe) on Dec 08, 2007 at 22:39 UTC |