Ask a Question related to PERL Beginners, Design and Development.

  1. #1

    Default authenticate module

    Hi,

    I like to use WWW::Mechanize to scrape a website.
    However the website has a authentication page. Is
    there a perl module I can use to perform the
    authentication ?

    Thanks,
    Raghu

    __________________________________
    Do you Yahoo!?
    Yahoo! SiteBuilder - Free, easy-to-use web site design software
    [url]http://sitebuilder.yahoo.com[/url]
    Raghupathy Guest

  2. Similar Questions and Discussions

    1. CF to authenticate against Linux HTACCESS
      I have a page that we want to link to other webservers. Some of these webservers (Linux) have implemented security via HTACCESS. We have the...
    2. Use CF to authenticate against HTACCESS
      I have a page that we want to link to other webservers. Some of these webservers (Linux) have implemented security via HTACCESS. We have the...
    3. authenticate except one page
      i use form based authenticatiżon. But in my project only one file must use anonymous access. how can i do that? thanks bg
    4. Authenticate with a webservice
      I know how to authenticate to a webservice using either of these ways(Assuming that rService represents the webservice): 1) rService.Credentials...
    5. How to authenticate HttpWebRequest?
      Hi, i have a protected part of application ("security" subdirectory is protected by authentication mode="Forms"). i'd like to give a user a...
  3. #2

    Default Re: authenticate module

    Raghupathy wrote:
    > Hi,
    >
    > I like to use WWW::Mechanize to scrape a website.
    > However the website has a authentication page. Is
    > there a perl module I can use to perform the
    > authentication ?
    >
    > Thanks,
    > Raghu
    Do you have the authors permission to scrape? It is possible that
    they want to make their material accesible only to those who care
    enough to visit in person.

    Joseph

    R. Joseph Newton Guest

  4. #3

    Default RE: authenticate module

    No extra module is needed. WWW::Mechanize is a subclass of LWP::UserAgent,
    which supports it.

    my $ua = new WWW::Mechanize();

    $ua->credentials('www.myhostname.com:80', 'RealmName', 'user', 'pass');
    $ua->get('http://www.myhostname.com');
    print $ua->content;

    The params are host/port, realm, username, password.

    The realm should be visible in the login box (in IE6 it is).

    See LWP::UserAgent for more info... although it doesn't say much about that
    function.

    Rob


    -----Original Message-----
    From: Raghupathy [mailto:rr_raghupathy@yahoo.com]
    Sent: Monday, September 08, 2003 5:44 PM
    To: [email]beginners@perl.org[/email]
    Subject: authenticate module


    Hi,

    I like to use WWW::Mechanize to scrape a website.
    However the website has a authentication page. Is
    there a perl module I can use to perform the
    authentication ?

    Thanks,
    Raghu

    __________________________________
    Do you Yahoo!?
    Yahoo! SiteBuilder - Free, easy-to-use web site design software
    [url]http://sitebuilder.yahoo.com[/url]

    --
    To unsubscribe, e-mail: [email]beginners-unsubscribe@perl.org[/email]
    For additional commands, e-mail: [email]beginners-help@perl.org[/email]
    Rob Hanson Guest

  5. #4

    Default RE: authenticate module

    Thanks Rob...

    Joseph,
    I am trying to scrape a website for which I have
    paid to look at the data. However since it is
    currently time consuming, I like to parse the data
    using perl to present it in a condensed form for my
    personal use. None of the data will be published and
    so I assume I do not need the owner permission to do
    so.

    Thanks,
    Ramesh

    --- "Hanson, Rob" <rhanson@aptegrity.com> wrote:
    > No extra module is needed. WWW::Mechanize is a
    > subclass of LWP::UserAgent,
    > which supports it.
    >
    > my $ua = new WWW::Mechanize();
    >
    > $ua->credentials('www.myhostname.com:80',
    > 'RealmName', 'user', 'pass');
    > $ua->get('http://www.myhostname.com');
    > print $ua->content;
    >
    > The params are host/port, realm, username, password.
    >
    > The realm should be visible in the login box (in IE6
    > it is).
    >
    > See LWP::UserAgent for more info... although it
    > doesn't say much about that
    > function.
    >
    > Rob
    >
    >
    > -----Original Message-----
    > From: Raghupathy [mailto:rr_raghupathy@yahoo.com]
    > Sent: Monday, September 08, 2003 5:44 PM
    > To: [email]beginners@perl.org[/email]
    > Subject: authenticate module
    >
    >
    > Hi,
    >
    > I like to use WWW::Mechanize to scrape a website.
    > However the website has a authentication page. Is
    > there a perl module I can use to perform the
    > authentication ?
    >
    > Thanks,
    > Raghu
    >
    > __________________________________
    > Do you Yahoo!?
    > Yahoo! SiteBuilder - Free, easy-to-use web site
    > design software
    > [url]http://sitebuilder.yahoo.com[/url]
    >
    > --
    > To unsubscribe, e-mail:
    > [email]beginners-unsubscribe@perl.org[/email]
    > For additional commands, e-mail:
    [email]beginners-help@perl.org[/email]


    __________________________________
    Do you Yahoo!?
    Yahoo! SiteBuilder - Free, easy-to-use web site design software
    [url]http://sitebuilder.yahoo.com[/url]
    Raghupathy Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139