pCloud Partner Program

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

系統技術/FreeBSD/Linux 2016/04/22 05:28
views: 43254 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 steel warehouse construction 2017/05/15 20:50 DELETE

    Subject: steel warehouse construction

    Find top quality commercial building contractor that's available plus currently available today!
  2. Tracked from click the following post 2017/05/23 01:38 DELETE

    Subject: click the following post

    See the best pa system for school that are now in stock in addition at great prices. Get it now!
  3. Tracked from school buzzer system 2017/05/23 01:51 DELETE

    Subject: school buzzer system

    See professional school bell systems that's available and on sale. Get it now!
  4. Tracked from commercial building contractor 2017/05/23 02:32 DELETE

    Subject: commercial building contractor

    Get top steel warehouse construction that's in stock and at great prices today!
  5. Tracked from steel building contractors 2017/05/23 02:38 DELETE

    Subject: steel building contractors

    See the best steel building erectors that's in stock plus at great prices 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...