我在运行curl。我没有收到错误。
curl -X POST -u "username":"pwd" "https://gateway.watsonplatform.net/retrieve-and-rank/api/v1/solr_clusters/scc2c46f2f_a84c_42d7_8857_a9999704dde4/config/Kbase" --data-binary @solr_config.zip但是,当我添加一个集合时,我得到的消息是它没有配置
当我搜索所有配置时,它没有显示。
curl -u "username":"pwd" "https://gateway.watsonplatform.net/retrieve-and-rank/api/v1/solr_clusters/scc2c46f2f_a84c_42d7_8857_a9999704dde4/config"发布于 2016-09-02 02:21:54
我没有:-H“内容类型:应用程序/压缩包”
这是语句: curl -X POST -H“内容类型:应用程序/zip”-u“{用户名}”:“{password}”"https://gateway.watsonplatform.net/retrieve-and-rank/api/v1/solr_clusters/sc1ca23733_faa8_49ce_b3b6_dc3e193264c6/config/example_config“--data-binary @/configs/example_config.zip
我只是打错了。
https://stackoverflow.com/questions/39274134
复制相似问题