1

HTTP リクエストが苦手なため、助けが必要です。

HTTP リクエストを使用して、XL リリース サーバーでリリースを作成しようとしています。今、私はそのようにバッチファイルでCurlでそれをやっています

curl "https://{ID}:{password}@{IP}:{port}/api/v1/templates/Applications/Folder{IDFolder}/create" -i -X POST -H 'Content-Type:application/json' -H 'Accept:application/json' -d %0\..\ReleaseConfig.json

スクリプトと同じディレクトリにあるデータ ファイルは、次のような json です。

{ "releaseTitle" : "API Test", "releaseVariables" : { }, "releasePasswordVariables" : { }, "scheduledStartDate" : null, "autoStart" : false }

問題は、コマンドの実行中に次のようなエラーが発生することです。

RESTEASY003065: Cannot consume content type

私のケースを助けることができる何か考えがありますか?

ありがとう

4

1 に答える 1