You are not logged in.
I am updating a PKGBUILD for AUR and I have discovered that the server won't allow curl to download the package file:
$ curl https://dl.dell.com/FOLDER07456510M/1/Dell-OM-MIBS-10100_A00.zip
[...]
<H1>Access Denied</H1>
However if I change the user agent then it works fine:
curl --user-agent "Not cURL" https://dl.dell.com/FOLDER07456510M/1/Dell-OM-MIBS-10100_A00.zip > download.zip
I can't immediately see how to adjust a PKGBUILD so that this option gets passed to curl when running makepkg. Can anyone advise?
Last edited by Malvineous (2022-08-23 06:36:39)
Offline
Add the option --user-agent to curl in DLAGENTS in the PKGBUILD. This works for me
DLAGENTS=('https::/usr/bin/curl -qgb "" -fLC - --retry 3 --user-agent Mozilla --retry-delay 3 -o %o %u')
Offline
Thanks for that, that did the trick!
Offline