Need help for the error 301 moved permanently!
Thanks for adding me to this group. Following is the script and result I am getting:- use WWW::Mechanize; my $url='https://www.platts.com/Login.aspx?'; my $mechanize = WWW::Mechanize-new(autocheck = 1); $mechanize-cookie_jar(HTTP::Cookies-new); $mechanize-agent('Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1) Gecko/20061010 (IKDhPmJcdw) Firefox/2.0'); my $response = $mechanize-get( $url ); my $html = $mechanize-content; print $html \n; Output of script is:- !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN htmlhead title301 Moved Permanently/title /headbody h1Moved Permanently/h1 pThe document has moved a href=http://www.platts.com?http://www.platts.com/? here/a./p /body/html It should get source page of https://www.platts.com/Login.aspx?, But it is saying error “301 moved permanently”. Can anyone help me please on this regard, I tried a lot but not able to fix this issue? Thanks in advance! Thanks Regards, Bipin Nayak* (Bipin)*
Re: installation of frameready-1.020 failed
On Wed, 27 Jan 2010 12:47:39 +0100 Yun-an Yan yun-an@uni-rostock.de wrote: Dear All, I cannot pass the test when I try to install Frameready-1.020. Would somebody please help me? Yun-an, The test failed was a live test, meaning it ran against a live website and could have failed for a reason caused by the server rather than your software. It is probably save to ignore. You can just for a make install to skip it. Mark -- http://mark.stosberg.com/
Re: Need help for the error 301 moved permanently!
On Thu, 28 Jan 2010 15:51:47 +0530 bipin Nayak nbipi...@gmail.com wrote: Thanks for adding me to this group. Following is the script and result I am getting:- Bipin, I tried the script as you gave it and it gave the source of the login page as the result, *not* a 301. Are you using the latest versions of LWP::UserAgent and WWW::Mechanize? I just downloaded the latest versions from CPAN. Mark -- http://mark.stosberg.com/