Hello every body,

Ok here is my problem...

I make an HTTP Request to a server and i am being redirected to another page. How can i know to which page am i being redirected?
Depending on the Request i am being redirected to another page...

I get the HTTP status and content_type but the content is blank...
The status is 302 which means i am being redirected...
How do i get all the headers?

I hope you understand my problem...

Here is a sample of my code:

use strict;
use warnings;
use LWP 5.64;
my $url = 'http://www.thepage.php';
my $content = $browser->post($url,
   [
      'name'=> "kathas"
   ]);
print $content->content."\n";
 print $content->status_line."\n";
 print $content->content_type."\n";

Recommended Answers

All 2 Replies

Ok guys do not bother searching any more...

answer to my problem...:

$content->headers->{location}

already resolved on another forum.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.