Dnf repo mirrors fail

Getting curl errors when using repo mirrorlists unless I uncomment out the baseurls and comment out the mirrorlists:

 ~ sudo dnf upgrade
AlmaLinux 9 - BaseOS                                                                                                                                      0.0  B/s |   0  B     00:00    
Errors during downloading metadata for repository 'baseos':
  - Curl error (3): URL using bad/illegal format or missing URL for <a href="https://ro.mirror.flokinet.net/almalinux/"/repodata/repomd.xml []
  - Curl error (3): URL using bad/illegal format or missing URL for <a href="http://ftp.bme.hu/almalinux/"/repodata/repomd.xml []
  - Curl error (3): URL using bad/illegal format or missing URL for <a href="rsync://hcc-mirror.unl.edu/almalinux/"/repodata/repomd.xml []
  - Curl error (3): URL using bad/illegal format or missing URL for <a href="https://mirror.truenetwork.ru/almalinux/"/repodata/repomd.xml []
  - Curl error (3): URL using bad/illegal format or missing URL for <a href="https://hnd.cl"/repodata/repomd.xml []
  - Curl error (3): URL using bad/illegal format or missing URL for <a href="https://sindad.com"/repodata/repomd.xml []
  - Curl error (3): URL using bad/illegal format or missing URL for <a href="https://www.xeonbd.com"/repodata/repomd.xml []
...
...
  - Curl error (3): URL using bad/illegal format or missing URL for /* tracker methods like "setCustomDimension" should be called before "trackPageView" */repodata/repomd.xml []
Error: Failed to download metadata for repo 'baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

So, I’ve set repos like:

baseurl=https://repo.almalinux.org/almalinux/$releasever/BaseOS/$basearch/os/
#mirrorlist=https://mirrors.almalinux.org/#mirrorlist/$releasever/baseos

Turns out my corporate IT firewalls [paloalto] were blocking the ‘dnf’ application. They set rules to allow dnf and mirrors now work fine.