Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Send user to a different server

by Michalis (Pilgrim)
on Jul 27, 2004 at 15:01 UTC ( [id://377757]=note: print w/replies, xml ) Need Help??


in reply to Re: Send user to a different server
in thread Send user to a different server

Gladly, but what part. Here is the thing I tried:
if (param('paymethod') == 1) { my $ua = LWP::UserAgent->new(agent => 'InterZone client'); $ua->redirect(1); my $resp = $ua->request( POST 'https://secure.server.gr/cgi-bin/mepayment.sc', Content_Type => 'application/x-www-form-urlencoded', Content => [ 'paymethod' => param('paymethod'), 'tr_id' => param('tr_id'), 'price' => param('price'), 'totalseats' => param('totalseats'), 'agree' => param('agree'), 'double' => param('double') ]); if (!$resp->is_success) { errorandout($Message[27], $lang."/out.html"); mail_inform('adm','site','Error',"Error".self_url(-full=>1,-query=>0 +)."\n"); exit; } else { That's what I'm looking for } }
-- Michalis

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-24 21:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found