I am trying to download and output to a file using cURL in a Perl script.
1) I have to pass username and password in the following below. What switch should I use?
2) When I execute Perl script, this is what I get:
Can't locate WWW/Curl.pm in @INC (@INC contains: f:/Perl/site/lib f:/Perl/lib .) at onesec.pl line 9. BEGIN failed--compilation aborted at haroldonesec.pl line 9.
use WWW::Curl;
curl http://download2.emu-lochard.com/sfo1/gru?start-time=2009-08-15+00%3A00%3A00&end-time=2009-08-15+12%3A59%3A59&time-zone=GMT&metric=laeq --data --O curllaeq.txt
3) How can I use Wget to do the same?
I am using the following but getting errors:
use LWP::Simple;
wget --user=username --password=password http://download2.emu-lochard.com/sfo1/gru?start-time=2009-08-15+00%3A00%3A00&end-time=2009-08-15+12%3A59%3A59&time-zone=GMT&metric=laeq -O laeq.txt