in reply to Porting wget commandline switches to LWP
To expand a bit on the reply by Anonymous Monk, you will need to find out what the wget command line switches do and then implement that in Perl.
As a first start, I recommend WWW::Mechanize over using LWP::UserAgent directly, because WWW::Mechanize behaves more like a browser. The --http-user and --http-password switches sound to me like basic authentication, and I'm sure that LWP has something for basic authentication. --post-data will have to be supplied by you in a HTTP::Request::POST object, or, if you're using WWW::Mechanize, might simply come from a ->submit call. --user-agent is in WWW::Mechanize.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Porting wget commandline switches to LWP
by Gangabass (Vicar) on Dec 19, 2007 at 09:34 UTC |