I am trying to call a URL that causes the download of a csv file (when accessed from the browser). This is my code:
use WWW::Mechanize; my $mech = WWW::Mechanize->new(); $mech->get ("http://localhost/market.php?Username=admin&Password=admin +&action=Smartphone"); $mech->save_content( 'file.csv );
Only when I do this, the raw HTML is saved into my file instead of the content of the file that needs to be downloaded... What am I doing wrong??? Thanks
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |