pCloud Partner Program

使用wget進行網站用戶驗證方式

系統技術/FreeBSD/Linux 2016/04/22 05:28
views: 46124 times
今天在設定一個排程作業, 要起動一支程式, 不過該 url 有限定使用 www 驗證的方式, 所以在排程中, 就要給定對應的帳號密碼.

查了一下資料, 可以使用以下語法:

wget [ur] --user=[user] --password=[password]

這樣就可以了, 其實還蠻容易理解與設定.

參考資料:
http://stackoverflow.com/questions/4272770/wget-with-authentication
http://www.ewdna.com/2012/04/wget.html

PS. 若是不要下載檔案, 可以使用 -O (大寫)用來指定輸出檔案至 /dev/null 即可.
top

Trackback Address :: http://diary.tw/tim/trackback/1145

  1. Tracked from Yerba Montana 2017/06/26 12:25 DELETE

    Subject: Yerba Montana

    Find most popular yerba mate to water ratio that are available plus currently available. Get it now!
  2. Tracked from wireless pa system for schools 2017/06/27 03:16 DELETE

    Subject: wireless pa system for schools

    Find top wireless buzzer alarm that are now in stock in addition currently available. Get yours today!

Write a comment


PREV : [1] : ... [25] : [26] : [27] : [28] : [29] : [30] : [31] : [32] : [33] : ... [462] : NEXT



Nextbit Robin 5.2吋六核心智慧型手機 Microsoft Office 365 中文家用版PKC (無光碟)
ASUS華碩 AC1900 雙頻無線路由器 RT-AC68U 美國 VORNADO 533 渦流空氣循環機 (黑色)
御茶園 每朝健康綠茶(650mlx24入) 每朝健康 雙纖綠茶(650mlx24入)


 Waiting...