[Chicago-talk] RE: Login

petemar1 petemar1 at perlmonk.org
Tue Jan 20 15:42:47 CST 2004


I also created goLogin() using WWW::Mechanize and received the same results.

    ###
    # goLogin()
    #
    sub goLogin {
        my $a = WWW::Mechanize->new();

$a->get('http://signin.ebay.com/aw-cgi/eBayISAPI.dll?SignIn&UsingSSL=0&pUser
Id=username&
ru=http%3A%2F%2Fcgi1.ebay.com%2Faw-cgi%2FeBayISAPI.dll%3FMyEbayLogin&pp=pass
&pageType=174&i1=0')
;
        $a->submit_form(
            form_number => 2,
            fields => {
                userid   => $user,
                pass => $pass,
            },
        );
        print "logged in!\n";
    } # end goLogin()


-----Original Message-----
From: petemar1 [mailto:petemar1 at perlmonk.org]
Sent: Tuesday, January 20, 2004 3:31 PM
To: Chicago.pm chatter
Subject: Login



WWW::Search::Ebay::Completed lets me login when I create a new
WWW::Search('Ebay::Completed') object and use the login() method, but I fail
to scrape search results. I do get results when login isn't necessary and I
create a WWW::Search('Ebay') object.

???





More information about the Chicago-talk mailing list