pCloud Partner Program

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

系統技術/FreeBSD/Linux 2016/04/22 11:28
views: 56390 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 recipe yerba mate 2017/12/01 12:13 DELETE

    Subject: recipe yerba mate

    See top how many teaspoons of yerba mate per cup currently available in addition on sale. Get it today!
  2. Tracked from seo campaign 2017/12/10 19:00 DELETE

    Subject: seo campaign

    See the greatest available google advertising currently in stock and at great prices you can get now!
  3. Tracked from school bell systems 2017/12/12 01:51 DELETE

    Subject: school bell systems

    Find professional school bell system currently now in stock and at the best price now!
  4. Tracked from wireless buzzer alarm 2017/12/12 10:42 DELETE

    Subject: wireless buzzer alarm

    See professional school clock and bell systems that are now in stock and at the best price now!

Write a comment


PREV : [1] : ... [36] : [37] : [38] : [39] : [40] : [41] : [42] : [43] : [44] : ... [473] : NEXT



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


 Waiting...