我正在使用 curl 对在 ubuntu 实例上运行的 nutch 服务器进行 RESTapi 调用。当我使用 curl 进行以下调用以在我的服务器上创建我的种子文件时
curl -X POST http://**.185.***.**:8081/seed/create -d {"id": "ubuntu", "name": "servertest1", "seedUrls": [{"id":1,"seedList":null,"url":"http://www.******.com/"}]}
我收到以下错误
The given resource variant is not supported.Please use one of the following:
* Variant[mediaType=application/json, language=null, encoding=null]
curl: (6) Could not resolve host: ubuntu,
curl: (6) Could not resolve host: name
curl: (6) Could not resolve host: servertest1,
curl: (6) Could not resolve host: seedUrls
curl: (3) [globbing] bad range in column 2
curl: (3) [globbing] bad range in column 2
curl: (3) [globbing] bad range in column 2
提前感谢您的帮助,我是 HTTP 调用的新手,所以我很迷茫