[英]Pentaho Kettle - Rest Client Unauthorized for HTTP Method DELETE
I'm working on Pentaho 7.1 and i'm using a rest client to perform activities through a specific URL. 我正在使用Pentaho 7.1,我正在使用rest客户端通过特定的URL执行活动。
Authentication parameters such as Username and Password are properly set, in fact when i'm using HTTP Method "GET" that works fine and i get the Json i'm expecting. 正确设置了用户名和密码等身份验证参数,实际上当我正在使用HTTP方法“GET”工作正常时,我得到了我期待的Json。
The server i'm contacting (JIRA) exposes as well DELETE HTTP Method, that is what i need. 我正在联系的服务器(JIRA)也暴露了DELETE HTTP方法,这就是我需要的。
So, changing HTTP Method results in an unauthorized response, while the same works fine for example in Postman. 因此,更改HTTP方法会导致未经授权的响应,而在Postman中也可以正常工作。
I have already tried in postman to see what is my Authentication Header, copying it and using it as a header (injecting a field from a previous step as a constant). 我已经在邮递员中尝试过查看我的身份验证标头,复制它并将其用作标题(将前一步骤中的字段作为常量注入)。
If you don't want to go deep just https://hc.apache.org/httpcomponents-client-4.5.x/logging.html enable logging (or just capture traffic). 如果您不想深入了解https://hc.apache.org/httpcomponents-client-4.5.x/logging.html启用日志记录(或仅捕获流量)。
See the difference between Postman and Pentaho, apply the fix. 查看Postman和Pentaho之间的区别,应用修复程序。 Done. 完成。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.