How to solve the error of '302' moved temporary.
There is answer for this is
Immediately after receiving this status code, the client should use the new URL to resolve the request, but the old URL should be used for all future requests.
i write such code
($res->code() eq '302'){
$newurl = $res->headers->header('location');
#Create the HTTP request object
my $new_req = new HTTP::Request GET =>$newurl;
my $new_res = $ua->request($new_req);
#print $new_res->as_string();
}
but it is showing the same error like
HTTP/1.1 302(found) moved temporary
Connection:close
Date:
Location:
.
.
such headers...
thanks.