in reply to Re^2: How to get back the url of a page
in thread How to get back the url of a page
cormanaz is right. This image site sometimes redirects images to an IP address when the servers are getting high traffic. I need to be able to load the original image URL and detect whether or not it's going to redirect me. If so, I need to know what the address is of the image.
"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"
sulfericacid
This is my current set up.
foreach my $pic (@pics) { my $mech = WWW::Mechanize->new(); $mech->agent_alias( 'Windows IE 6' ); $mech->get($pic); my $location = $mech->uri(); push(@final_pics, "$location"); print "\ntesting $pic with location $location"; }
"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"
sulfericacid
In Section
Seekers of Perl Wisdom