Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^7: A regexp from paypal

by Cubes (Pilgrim)
on Nov 26, 2007 at 09:39 UTC ( [id://652950]=note: print w/replies, xml ) Need Help??


in reply to Re^6: A regexp from paypal
in thread A regexp from paypal

Take a look at HTTP::Request::Common.

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,

$req->content_type('application/x-www-form-urlencoded'); $req->content($q);
as the content is set in the constructor, and the correct content_type is set by default.

Replies are listed 'Best First'.
Re^8: A regexp from paypal
by davidov0009 (Scribe) on Dec 08, 2007 at 22:39 UTC
    That doesn't seem to work either, I think it is looking for the string as it is received by my program with the addition of the cmd variable. I will just create the CGI object later on when I process the variables.
    use strict; use CGI;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-09-08 01:19 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.