monkfan has asked for the wisdom of the Perl Monks concerning the following question:
But it gives:use WWW::Mechanize; my $addr = 'http://myhost.com.sg/cgi-bin/biobase/transfac/9.4/bin/star +t.cgi'; my $username = 'myname'; my $pwd = 'somepassword'; my $mech = WWW::Mechanize->new(); $mech->get($addr); $mech->credentials($username,$pwd); my $result = $mech->content(); print "$result\n";
Did I use the right module and its method? How can I know what kind of cookie they are using?<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>401 Authorization Required</title> </head><body> <h1>Authorization Required</h1> <p>This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.</p> <hr /> <address>Apache/2.0.46 (Red Hat) Server at myhost.com.sg Port 80</addr +ess> </body></html>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Howto fill in username and password in a popup cookie with Perl
by shmem (Chancellor) on Sep 22, 2006 at 10:27 UTC | |
by monkfan (Curate) on Sep 22, 2006 at 14:24 UTC | |
|
Re: Howto fill in username and password in a popup cookie with Perl
by hgolden (Pilgrim) on Sep 22, 2006 at 14:44 UTC | |
by paulehr (Sexton) on Nov 15, 2006 at 02:13 UTC | |
|
Re: Howto fill in username and password in a popup cookie with Perl
by bobf (Monsignor) on Sep 22, 2006 at 17:24 UTC | |
by monkfan (Curate) on Sep 23, 2006 at 02:28 UTC | |
by bobf (Monsignor) on Sep 23, 2006 at 05:28 UTC | |
by monkfan (Curate) on Sep 23, 2006 at 12:15 UTC |