in reply to Question about LWP::UserAgent

Since you are asking for 'specific help', you do need to post the failing code fragment so we can all have sonething to be specific about.

----
I Go Back to Sleep, Now.

OGB

Replies are listed 'Best First'.
Re^2: Question about LWP::UserAgent
by tdavis (Initiate) on Dec 20, 2004 at 18:02 UTC
    Yes, you are right. Here is the suspect code:
    read (STDIN, $query, $ENV{'CONTENT_LENGTH'}); $query .= '&cmd=_notify-validate'; # post back to PayPal system to 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);
    Everything else works OK. I am sending the buyer an email, the seller an email, and writing a record to a sales header file, and record(s) to a sales detail file. All of that works. The log records no errors. Thanks for your help! T.Davis