0
我有一個使用wget創建cron作業的問題。 當我使用這個命令:wget沒有明顯的原因
wget -U http://example.com/wp-content/plugins/plugin_name/export.php
我得到這個消息:
--2013-11-21 11:29:01-- http://example.com/wp-content/plugins/plugin_name/export.php
Resolving example.com... 255.255.255.255
Connecting to example.com|255.255.255.255|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2013-11-21 11:29:01 ERROR 403: Forbidden.#
於是我研究了這一點,並使用瀏覽器的欺騙伎倆像這樣嘗試:
wget -U 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4' http://example.com/wp-content/plugins/plugin_name/export.php
但這種回報:
--2013-11-21 11:36:02-- http://example.com/wp-content/plugins/plugin_name/export.php
Resolving example.com... 255.255.255.255
Connecting to example.com|255.255.255.255|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-11-21 11:36:03 ERROR 404: Not Found.
我找不到任何理由發生這種情況,我有點難住。 我沒有運行任何一種代理攔截
總之,是的,我可以 –