一段shell脚本的意思

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

这个是什么意思

阅读 1.4k
1 个回答

用GET方法加载http://localhost/token.php页面, 参数grant_type=client_credentials, -u后面的是用户名和密码.

@Feng_Yu 是对的, 加-d参数后,curl默认按POST方法发送数据

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进