0
我正在通過dreamhost面板運行cron作業。該網站正在使用基本的HTTP身份驗證。執行PHP的Cron:416錯誤
wget --http-user=[user] --http-passwd=[pw] http://www.example.com/script.php
它的工作第一次它跑,但自那以後我得到這樣的結果:
--2013-10-23 00:00:01-- http://www.example.com/script.php
Resolving www.example.com... [ip] Connecting to www.example.com|[ip]|:80... connected.
HTTP request sent, awaiting response... 401 Authorization Required Reusing existing connection to www.example.com:80.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable
The file is already fully retrieved; nothing to do.
我不明白416級的錯誤,我不知道做什麼的「文件已經完全檢索「行。我能想到的是,由於它重用了現有的連接,因此它不想再次運行腳本,所以也許我應該在每次運行後都註銷它,但我不知道我在說什麼關於。任何幫助讚賞。
我還沒有使用Dreamhost,但我的猜測是,你的原始結果是緩存在服務器中。你可以檢查你的提供者,如果wget已經定製?如果你擁有example.com/script.php,你可以嘗試和測試另一個頁面或另一個用戶--http用戶。如果您擁有example.com/script.php,那麼您應該在執行wget時檢查apache日誌以查看請求。 – user1647708