Git bash curl请求- URL使用了错误/非法的格式或缺少URL

t2a7ltrp  于 2022-11-13  发布在  Git
关注(0)|答案(1)|浏览(267)

任何想法为什么我得到这个错误-我试过移动网址到最后,包裹在单引号和双引号

AUTH_TOKEN = $(curl -X POST\
 https://identity.api.rackspacecloud.com/v2.0/tokens\
  -H 'Cache-Control: max-age=10'\
  -H "Accept: application/json"\
  -H "Content-Type: application/json"\
  -k "C:\curl\cacert.pem"\
  -d "{"auth": {"RAX-KSKEY:apiKeyCredentials": {"username": "fakeuser","apiKey": "fakeapikey"}}}")

echo "$AUTH_TOKEN"
hsvhsicv

hsvhsicv1#

你必须逃离

-d "{\"auth\": {\"RAX-KSKEY

相关问题