小编Rag*_*pta的帖子

cURL 命令在 git bash 中有效,但在 cmd 和 powershell 中无效

以下命令适用于 git bash 但不适用于 cmd 和 powershell

curl -X POST http://localhost:5678/api/findgen -H 'Content-Type: application/json' -d '{"a": "Val 1","b": "Val 2","c": "Val 3","d": "Val 4"}' -o "file.json"
Run Code Online (Sandbox Code Playgroud)

我在 cmd 中收到错误,例如 -

curl: (6) 无法解析主机:应用程序

curl: (6) 无法解析主机:Val 1,b

curl: (6) 无法解析主机:Val 2,c

curl: (6) 无法解析主机:Val 3,d

curl: (3) [globbing] 第 6 列中无与伦比的大括号/括号

可能是什么问题?

api powershell curl cmd git-bash

6
推荐指数
1
解决办法
1022
查看次数

标签 统计

api ×1

cmd ×1

curl ×1

git-bash ×1

powershell ×1