On Sat, 20 Nov 2021 09:54:28 +0100, Andreas Bosch wrote: > curl -A makepkg -L "https://www.clamav.net/downloads/production/clamav-0.103.4.tar.gz.sig" Years back I tested it with "http://search.cpan.org/" and similar URLs. Since it didn't work, I haven't tested it today. However, you a right, it works. Without user-agent [1], with user-agent [2]. The "http://search.cpan.org/" issue still isn't solved [3]. [1] #### #### #### #### [rocketmouse@archlinux extra-x86_64]$ grep curl /etc/makepkg.conf DLAGENTS=('file::/usr/bin/curl -gqC - -o %o %u' 'ftp::/usr/bin/curl -gqfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' 'http::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' 'https::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' [rocketmouse@archlinux extra-x86_64]$ makepkg -s ==> Making package: clamav 0.104.1-1 (Sat 20 Nov 2021 11:40:27 CET) [snip] curl: (22) The requested URL returned error: 403 ==> ERROR: Failure while downloading https://www.clamav.net/downloads/production/clamav-0.104.1.tar.gz.sig Aborting... [2] #### #### #### #### [rocketmouse@archlinux extra-x86_64]$ grep curl /etc/makepkg.conf DLAGENTS=('file::/usr/bin/curl --user-agent archlinux -gqC - -o %o %u' 'ftp::/usr/bin/curl --user-agent archlinux -gqfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u' 'http::/usr/bin/curl --user-agent archlinux -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' 'https::/usr/bin/curl --user-agent archlinux -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u' [rocketmouse@archlinux extra-x86_64]$ makepkg -s ==> Making package: clamav 0.104.1-1 (Sat 20 Nov 2021 11:46:16 CET) [snip] -> Downloading clamav-0.104.1.tar.gz.sig... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 467 0 467 0 0 1223 0 --:--:-- --:--:-- --:--:-- 1225 100 801 100 801 0 0 933 0 --:--:-- --:--:-- --:--:-- 2206 -> Found clamav.logrotate -> Found clamav.tmpfiles -> Found clamav.sysusers ==> Validating source files with sha512sums... clamav-0.104.1.tar.gz ... Passed clamav-0.104.1.tar.gz.sig ... Skipped clamav.logrotate ... Passed clamav.tmpfiles ... Passed clamav.sysusers ... Passed ==> Verifying source file signatures with gpg... clamav-0.104.1.tar.gz ... Passed ==> Extracting sources... -> Extracting clamav-0.104.1.tar.gz with bsdtar ==> Starting prepare()... ==> Starting build()... [snip] [3] #### #### #### #### [rocketmouse@archlinux extra-x86_64]$ curl -L "https://cpan.metacpan.org/authors/id/Y/YE/YEWENBIN/Goo-Canvas-0.06.tar.gz" --output Goo-Canvas-0.06.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 103k 100 103k 0 0 782k 0 --:--:-- --:--:-- --:--:-- 778k [rocketmouse@archlinux extra-x86_64]$ curl --user-agent archlinux -L "http://search.cpan.org/CPAN/authors/id/Y/YE/YEWENBIN/Goo-Canvas-0.06.tar.gz" --output Goo-Canvas-0.06.tar.gz-2 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 162 100 162 0 0 2605 0 --:--:-- --:--:-- --:--:-- 2612 [rocketmouse@archlinux extra-x86_64]$ cat Goo-Canvas-0.06.tar.gz-2 <html> <head><title>403 Forbidden</title></head> <body bgcolor="white"> <center><h1>403 Forbidden</h1></center> <hr><center>nginx</center> </body> </html> [rocketmouse@archlinux extra-x86_64]$ tar xfv Goo-Canvas-0.06.tar.gz Goo-Canvas-0.06/ Goo-Canvas-0.06/Changes Goo-Canvas-0.06/META.yml Goo-Canvas-0.06/maps Goo-Canvas-0.06/MANIFEST Goo-Canvas-0.06/xs/ [snip]