in reply to Re^3: How do I access a password protected site and access data?
in thread How do I access a password protected site and access data?


OK, my install failed at the 'make test' run indicating 1 test failed. Tail of the output is:

Failed Test Stat Wstat Total Fail Failed List of Failed -------------------------------------------------------------------------------
t/link-relative.t 255 65280 6 8 133.33% 3-6 9 tests and 16 subtests skipped.
Failed 1/49 test scripts, 97.96% okay. 4/577 subtests failed, 99.31% okay.

*** Error code 11
make: Fatal error: Command failed for target `test_dynamic'

The failed test is called link-relative. Presuming that this indicated it is conducting tests to test relative links, which my code does not attempt to do, do you think I can safely ignore this failed test and resume installing the www::mechanize module?

  • Comment on Re^4: How do I access a password protected site and access data?

Replies are listed 'Best First'.
Re^5: How do I access a password protected site and access data?
by marto (Cardinal) on Jul 11, 2005 at 08:26 UTC
    Hi,

    Have you tried ignoring the error and installing the module?
    It may be worth while having a read at the great tutorial A Guide to Installing Modules, written by tachyon.

    Hope this helps,

    Martin
      Hi,

      Yes I ignored it and installed, but a test using the script that you so kindly provided, resulted in a strange error:

      "No such field 'username' at /location/of/perl/modules/WWW/Mechanize.pm line 1169"

      So, ignoring the 'make run' error was probably not a good idea. Thanks for the link to the turorial. BTW, I got my script working using LWP, so I'm going to postpone investigating Mechanize for later.

      I had to specify the content-type as "application/x-www-form-urlencoded" in the header and send the username and password as content to get it to work.
      A friend of mine suggested that I do this as he said the server might be ignoring the login info when sent as form data

      Thanks for all your help! I have learnt a lot trying to write this script!

        Hi,

        Double check the number of forms on the page you are working with.
        If you just change the URL in the example I posted the form number may be wrong.

        Hope this helps

        Martin