webcrawle with LWP: how to make redirection work?

S

S

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.
 
Y

yesk

S said:
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,787
Messages
2,569,631
Members
45,338
Latest member
41Pearline46

Latest Threads

Top