DavidJohnson
Programmer
Hi all!
First of Im new to perl/cgi and I've just
started to do some tiny apps. Now I have
run in to a problem.
I want to be able to redirect my request (using LWP) to
another domainname with e.g., certain headers and datas.
I manage to do request to other domains but when I end it still is where I started. Attached below is an example of what I have done ... I want the request to stay at the url(secure_url) not be where the request from... A redirect but I haven't found out how to do it in LWP...
Thx for the help!
John
my $request = new HTTP::Request GET;
$request->url($secure_url);
$request->header("Referer" => $requested_from);
my $agent = new LWP::UserAgent;
my $response = $agent->request( $request );
print $response->content;
First of Im new to perl/cgi and I've just
started to do some tiny apps. Now I have
run in to a problem.
I want to be able to redirect my request (using LWP) to
another domainname with e.g., certain headers and datas.
I manage to do request to other domains but when I end it still is where I started. Attached below is an example of what I have done ... I want the request to stay at the url(secure_url) not be where the request from... A redirect but I haven't found out how to do it in LWP...
Thx for the help!
John
my $request = new HTTP::Request GET;
$request->url($secure_url);
$request->header("Referer" => $requested_from);
my $agent = new LWP::UserAgent;
my $response = $agent->request( $request );
print $response->content;