Ticket #39886

Please provide release-file URL that file is always downloaded directly regardless of User-Agent header of HTTP request

Open Date: 2020-01-05 15:54 Last Update: 2020-01-05 15:54

Reporter:
Owner:
(None)
Status:
Open
Component:
MileStone:
(None)
Priority:
7
Severity:
7
Resolution:
None
File:
None
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Details

Summary of feature request

Please provide release-file URL that satisfies following 2 conditions.

  1. File is always downloaded directly regardless of User-Agent header of HTTP request.
  2. File is downloaded from the most suitable OSDN mirror server.

Background

I'm a volunteer of FreeBSD Ports Collection. It helps FreeBSD user to install 3rd-party applications. Among ports collection there are some applications hosted by OSDN. When they are installed, source archives are downloaded from one of OSDN mirror servers. And we have a problem about specifying download URL. In FreeBSD ports it is specified as variable of Makefile. And currently URLs of source archives hosted by OSDN are specified as following.

.for mirror in aarnet acc c3sl cznic gigenet iij jaist nchc onet osdn pumath rwthaachen ymu
MASTER_SITE_OSDN+= \
        http://${mirror}.dl.osdn.jp/%SUBDIR%/
.endfor

This means archives are tried to be downloaded from aarnet.dl.osdn.jp at first. And if it fails then from acc.dl.osdn.jp next, and so on.

Looking at this you must have question that why release-file URLs documented in File Release Guide aren't used. It is because of program used to download archives. In FreeBSD base system there is a command named fetch. It is similar utility as wget or curl and FreeBSD ports use it to download files. But it adds different User-Agent header from ones that wget or curl add. So if we access official release-file URLs with fetch, we will get not archive files but some html file for web browser. This is why we are now forced to use undocumented URLs and also reason to make feature request as above.

Please consider it.

Ticket History (1/1 Histories)

2020-01-05 15:54 Updated by: yasuhirokimura
  • New Ticket "Please provide release-file URL that file is always downloaded directly regardless of User-Agent header of HTTP request" created

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login