Subject: | Authorization problem |
Date: | Wed, 29 Oct 2008 16:21:28 -0400 |
To: | <bug-file-fetch [...] rt.cpan.org> |
From: | "Pourmoghaddam, Arash" <Arash.Pourmoghaddam [...] amd.com> |
Hi ,
I tried to use File::Fetch library to download an excel file which in
sitting on a server but I got the Authorization error as follow:
Fetch failed! HTTP response: 401 Unauthorized [401 Unauthorized] at
temp.pl line 9
Command failed: at temp.pl line 9
Command failed: at temp.pl line 9
Command failed: get: Access failed: 401 Unauthorized
(/sites/pciexp/Internal Documents/PCIe Planning/PCIE Roadmap Plans.xls)
at temp.pl line 9
Command failed:
So I want to set a variable to username and password to access the
file... I know there is a way to do that in CURL library by
Curl_setopt(CURLOPT_USRPWD,"username:password")
Is there any way to do that in File::Fetch??
Thanks,
Arash