Git bash curl 请求 - URL 使用错误/非法格式或丢失 url
任何想法为什么要遇到此错误的任何想法 - 我尝试将URL移至末端,用单引号包裹
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"
Any ideas why im getting this error - ive tried moving the URL to the end, wrapped in single and double quotes
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"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须逃脱
“
you have to escape the
"