鍍金池/ 問答/Linux  HTML/ 一段shell腳本的意思

一段shell腳本的意思

curl -u testclient:testpass http://localhost/token.php -d 'grant_type=client_credentials'

這個是什么意思

回答
編輯回答
壞脾滊

用GET方法加載http://localhost/token.php頁面, 參數(shù)grant_type=client_credentials, -u后面的是用戶名和密碼.

@Feng_Yu 是對的, 加-d參數(shù)后,curl默認按POST方法發(fā)送數(shù)據(jù)

2018年4月6日 00:41