|
|
|
Rank: Starting Member
Groups: Registered
Joined: 5/24/2003 Posts: 8 Location: ,
|
I searched the forum's previous postings but didn't find a real answer to this problem.
I have an Perl cgi script for IPN, and it was working fine on my previous web hosting site. I switched to a new web host provider, and now I never get a INVALID or VERFIED return when I post back to PayPal. Below is what I'm using:
==============================================
#!/usr/bin/perl
read (STDIN, $query, $ENV{'CONTENT_LENGTH'});
$query .= '&cmd=_notify-validate';
use LWP::UserAgent;
$ua = new LWP::UserAgent;
$req = new HTTP::Request 'POST','http://www.paypal.com/cgi-bin/webscr';
$req->content_type('application/x-www-form-urlencoded');
$req->content($query);
$res = $ua->request($req);
if ($res->content eq 'VERIFIED')
{
print "verified";
}
=================================================
$res->content contains this string:
HTTP::Response=HASH(0xbef944f8)->content
It never contains INVALID or VERIFIED
Can someone tell me why I'm getting this "HASH" returned string?
Thanks,
sbear
|
|
|
|
|
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 5/24/2003 Posts: 8 Location: ,
|
I tried a few more things, and I discovered that
$res->is_error() returns TRUE, which indicates an HTTP error according to the IPN documentation. Any idea why I'm getting this error message?
Thanks,
sbear
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 5/24/2003 Posts: 8 Location: ,
|
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 10/17/2002 Posts: 2,139 Location: ,
|
Hello, Here is some information that may help: http://www.paypaldev.org/topic.asp?TOPIC_ID=7964
Stephen Ivaskevicius PayPal/eBay, Inc. www.paypal.com/pdn
|
|
|
|
Guest
|
YAFVision Theme by Jaben Cargman (Tiny Gecko)Powered by YAF |
YAF © 2003-2009, Yet Another Forum.NETThis page was generated in 0.238 seconds.