cron 作业未检索网页内容?



我正在尝试使用 cron 作业来执行使用 url 的日常计算 (GET 'https://www.t......com/bonus/go'(,结果链接到我的电子邮件。

但我在我的电子邮件中得到了这个结果:

</head>
<body>
<div id="sf-resetcontent" class="sf-reset">
<h1>Sorry, the page you are looking for could not be found
</h1>
</div>
</body>
</html>

这意味着您指向的 URL 无效、不存在或无法从运行 cron 的上下文中访问。

请检查 URL 是否显示在网络浏览器上。如果您没有运行 cron 的 Web 浏览器,请在命令行中使用 curl 进行检查:

$ curl -L {your-url}
  • -L是允许 curl 跟随重定向。

最新更新