Skip Menu |
 

This queue is for tickets about the File-Fetch CPAN distribution.

Report information
The Basics
Id: 40506
Status: open
Priority: 0/
Queue: File-Fetch

People
Owner: Nobody in particular
Requestors: Arash.Pourmoghaddam [...] amd.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



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>
Download (untitled) / with headers
text/plain 716b
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
Subject: RE: [rt.cpan.org #40506] AutoReply: Authorization problem
Date: Wed, 29 Oct 2008 16:43:18 -0400
To: <bug-File-Fetch [...] rt.cpan.org>
From: "Pourmoghaddam, Arash" <Arash.Pourmoghaddam [...] amd.com>
Download (untitled) / with headers
text/plain 1.6k
Show quoted text
-----Original Message----- From: Bugs in File-Fetch via RT [mailto:bug-File-Fetch@rt.cpan.org] Sent: Wednesday, October 29, 2008 4:22 PM To: Pourmoghaddam, Arash Subject: [rt.cpan.org #40506] AutoReply: Authorization problem Greetings, This message has been automatically generated in response to the creation of a trouble ticket regarding: "Authorization problem", a summary of which appears below. There is no need to reply to this message right now. Your ticket has been assigned an ID of [rt.cpan.org #40506]. Your ticket is accessible on the web at: http://rt.cpan.org/Ticket/Display.html?id=40506 Please include the string: [rt.cpan.org #40506] in the subject line of all future correspondence about this issue. To do so, you may reply to this message. Thank you, bug-File-Fetch@rt.cpan.org ------------------------------------------------------------------------ - 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
Download (untitled) / with headers
text/plain 404b
Show quoted text
> 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??
Currently nto portably to all fetch methods, but it's definitely a worth while feature. I'll give some thought on how to implement this. Thanks for your suggestion.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.