Skip Menu |

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

Report information
The Basics
Id: 82549
Status: new
Priority: 0/
Queue: File-Fetch

People
Owner: Nobody in particular
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.32
  • 0.36
  • 0.38
  • 0.40
  • 0.42
Fixed in: (no value)



I think a possible solution here is having a variation of  http called http_withheaders, because many backends such as LWP, curl , HTTP::Tiny, have mechanisms to provide headers, 

curl -D $file  # tells curl to dump headers to this file

wget  has --save-headers  ( which prepends the resulting headers to the OUTPUT file )

And being able to return headers, and as a result, know whether a URI is a 404 or an empty file, will help solve this bug, and as a result, also solve https://github.com/miyagawa/cpanminus/pull/183