다음 명령은 Linux에서는 잘 작동하지만 Windows에서는 작동하지 않습니다. 창에 컬 구문에 대한 문서를 찾을 수 없습니다. 따옴표로 실험했지만 .. 여전히 작동하지 않습니다. 나는 (내가 C 드라이브에 curl.exe를 설치 한) Windows에서 사용할 수 있도록 사람이 명령을 도와 줄 수Windows 용 컬 명령 구문
curl -X POST -H "Content-Type: application/json" -H "X-Cachet-Token: secret" http://somegoodserver/api/v1/incidents -d '{"name":"Test","message":"Test message","status":"1"}'
내가 오류는 다음과 같습니다
"status":400,"title":"Bad Request","detail":"The request cannot be fulfilled due to bad syntax.","meta": {"details":["The name format is invalid.","The status format is invalid.","The message format is invalid."]}}]}
참고 : 내가 사용하려고 – user1164061
창에 명령 프롬프트에서이 명령을 실행하고 CreateProcessW WinAPI 함수입니다. cmd.exe는 인수에서 {}을 전달할 수 없으므로 -d 매개 변수가 손상됩니다. – hanshenrik