【发布时间】:2014-04-02 13:41:23
【问题描述】:
我想添加新的目标服务器,但出现以下错误。
curl: (6) Could not resolve host: <TargetServer name=TS1><Host>test.jokeindex.co
m<
curl: (6) Could not resolve host: \
{
"fault": {
"faultstring": "XMLThreatProtection stepDefinition XMLThreat: Execution
failed. reason: Unexpected char while looking for open tag ('<') character",
"detail": {
"errorcode": "steps.xmlthreatprotection.ExecutionFailed"
}
}
}
卷曲命令:
curl -H "Content-Type:text/xml" -X POST -d \ "<TargetServer name="TS1"><Host>test.jokeindex.com</Host><Port>80</Port><IsEnabled>true</IsEnabled></TargetServer>" \ -u nisarg:mypwd https://api.enterprise.apigee.com/v1/o/nisarg/environments/test/targetservers
【问题讨论】:
-
机器可以解析和/或ping test.jokeindex.com 吗?
-
没有。请求超时。
-
这也是你的 curl 错误所说的。
-
是的,所以我使用了 chrome 的 POSTMAN 插件并得到了响应。谢谢 Flauntster。
标签: apigee