YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Perl script never returns INVALID or VERIFIED Options
sbear
#1 Posted : Sunday, February 20, 2005 4:21:44 PM
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
Sponsor  
 
sbear
#2 Posted : Sunday, February 20, 2005 4:53:24 PM
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
sbear
#3 Posted : Thursday, February 24, 2005 3:08:30 AM
Rank: Starting Member

Groups: Registered

Joined: 5/24/2003
Posts: 8
Location: ,
Anyone?
PayPalStephen
#4 Posted : Thursday, February 24, 2005 2:34:24 PM
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
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.238 seconds.