简体   繁体   English

如何在 TIBCO 中的发送 HTTP 请求活动中传递“x-www-form-urlencoded”POSTMAN 参数?

[英]How to pass “x-www-form-urlencoded” POSTMAN parameter in Send HTTP Request activity in TIBCO?

I am trying to make a POST request using SendHTTPRequest activity in Tibco BW 6.5.我正在尝试使用 Tibco BW 6.5 中的 SendHTTPRequest 活动发出 POST 请求。 In POSTMAN I am able to do so by passing " x-www-form-urlencoded " in body tab and able to get the response also.在 POSTMAN 中,我可以通过在正文选项卡中传递“ x-www-form-urlencoded ”来做到这一点,并且也能够获得响应。

How can I pass those parameters in SendHTTPRequest Activity of Tibco BW 6.5如何在 Tibco BW 6.5 的 SendHTTPRequest 活动中传递这些参数

Below is how I send the request in POSTMAN for reference以下是我如何在 POSTMAN 中发送请求以供参考

在此处输入图像描述

I got the solution for this.我得到了解决方案。 in the PostData field of SendHTTPRequest you can add the whole x-www-form-urlencoded parameters by taking it from the POSTMAN code snippet section.在 SendHTTPRequest 的 PostData 字段中,您可以从 POSTMAN 代码片段部分获取整个x-www-form-urlencoded参数。 Another point to remember is in Header->Content-Type field of SendHTTPRequest you need to pass what type of input your are sending.要记住的另一点是在 SendHTTPRequest 的 Header->Content-Type 字段中,您需要传递要发送的输入类型。 In this case it will be "application/x-www-form-urlencoded"在这种情况下,它将是“application/x-www-form-urlencoded”

Cheers, Rudra干杯,鲁德拉

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM