in reply to Saving parameters before sending to 3rd party
I don't think that method will work if you have a POST method in your form.use CGI; (store parameters etc); print $cgi->redirect('the.other.host/url-with-parameters');
In that case, you could accept the request in your script, record the parameters, then do a LWP::Simple request in the background, and send the results of that request to the client. Note that in that case, the other server will see ALL the requests as coming from your server's IP - which may not be what you want.
Update:Right, as b10m pointed out, LWP::Simple doesn't do POST, only get (the fact that it accepts the URL as the single parameter should have clued me in). Yes, you'd have to use LWP::UserAgent, and it's post method.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Saving parameters before sending to 3rd party
by jonnyfolk (Vicar) on Mar 02, 2004 at 16:36 UTC |