网站设置了密码访问,计划任务访问url时出现401错误,不能运行。

如题,设置定时访问该网站相关url时,提示需要授权的401错误,有没有带账号密码访问的方式或者token?这个问题该如何解决?
版本:v1.10.7-lts
网站:苹果CMS10
执行时错误提示:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
100 176 100 176 0 0 5177 0 --:–:-- --:–:-- --:–:-- 5333

401 Authorization Required

401 Authorization Required


openresty

curl -u username:password http://example.com 是否能实现上述需求。