当我提交 REST 请求时,例如:(包含的身份验证适用于 admin/adminadmin)
curl -ik -X POST -H "Accept: application/json"
-H "Authorization: Basic YWRtaW46YWRtaW5hZG1pbg=="
https://localhost:4848/management/domain/applications/application/MyApp/enable
GlassFish 只是拒绝该请求:
HTTP/1.1 400 Bad Request
Content-Length: 0
Date: Wed, 17 Jul 2013 10:33:06 GMT
Connection: close
我究竟做错了什么?
我使用 GET 方法检查命令参数,它们都是可选的。