webcrawle with LWP: how to make redirection work?

Discussion in 'Perl' started by S, Jan 14, 2004.

  1. S

    S Guest

    Hi,

    I am making a webcrawler and it needs to go through the login on the
    front page. I use LWP:UserAgent and HTML::Form to basically post the
    username and password to the site. Once past the login, I should be
    redirected to a new page if I use a browser. However, in my Perl
    script, the response I got is "HTTP/1.1 302 (Found) Object moved". I
    think that means my code works for the login but fails to have a
    sucessful redirection? How to actually go to the desired redirected
    page? Thank you.
     
    S, Jan 14, 2004
    #1
    1. Advertising

  2. S

    yesk Guest

    S <> wrote in news:p:

    > Hi,
    >
    > I am making a webcrawler and it needs to go through the login on the
    > front page. I use LWP:UserAgent and HTML::Form to basically post the
    > username and password to the site. Once past the login, I should be
    > redirected to a new page if I use a browser. However, in my Perl
    > script, the response I got is "HTTP/1.1 302 (Found) Object moved". I
    > think that means my code works for the login but fails to have a
    > sucessful redirection? How to actually go to the desired redirected
    > page? Thank you.
    >


    Hello, Quakey
     
    yesk, Jan 14, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. cp
    Replies:
    3
    Views:
    6,057
  2. Noni

    Webcrawle / Search engine

    Noni, Apr 7, 2004, in forum: Java
    Replies:
    11
    Views:
    741
  3. Nikola Skoric

    what difference does redirection make?

    Nikola Skoric, Oct 17, 2010, in forum: Python
    Replies:
    2
    Views:
    280
    Nikola Skoric
    Oct 18, 2010
  4. Xeno Campanoli
    Replies:
    1
    Views:
    345
    James Britt
    Jul 1, 2005
  5. Ted Byers
    Replies:
    0
    Views:
    586
    Ted Byers
    Dec 21, 2011
Loading...

Share This Page