Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi all! First of Im new to perl/

Status
Not open for further replies.

DavidJohnson

Programmer
Aug 6, 2002
7
DE
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;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top