I am using LWP to make HTTP Requests to a page that is supposed to redirect me somewhere. how can i see where does it redirect me?
Here is my code:
use strict;
use warnings;
use LWP 5.64;
my $browser = LWP::UserAgent->new;
my $content = $browser->post($url,
[
'name'=> "kathas"
]);
print $content->content;
Example if the name is kathas it redirects me to kathas.php
else to noone.php how can i see where does it redirect me?
The content ($content->content) is blank...
Thanx in advance for all help.
Here is my code:
use strict;
use warnings;
use LWP 5.64;
my $browser = LWP::UserAgent->new;
my $content = $browser->post($url,
[
'name'=> "kathas"
]);
print $content->content;
Example if the name is kathas it redirects me to kathas.php
else to noone.php how can i see where does it redirect me?
The content ($content->content) is blank...
Thanx in advance for all help.