[英]Query params are ignored from publisher.url in SiddhiQL
The query params placed in publisher.url are not been sent to the server. 放置在Publisher.url中的查询参数未发送到服务器。 Here is the code snippet
这是代码片段
@App:name("Http_trial")
@App:description("Description of the plan")
define stream SweetProductionStream (projectCode string, totalBid int );
@sink(type="http",
method="POST",
headers="'Content-Type:application/json','Accept:application/json','Host:192.168.43.79'",
follow.redirect='true',
publisher.url = "http://192.168.43.79:8080/path?abc=xyz",
@map(type='json', validate.json='true', @payload("""{"properties":[{"name":"amount","value":"100"}]}""")))
define stream LowProductionAlertStream (projectCode string, totalBid int);
@info(name = 'query1')
from SweetProductionStream
select *
insert into LowProductionAlertStream;
Packet captured using Wireshark enter image description here 使用Wireshark捕获的数据包在此处输入图像描述
The request uri seen in the packet details only contains /path and is missing ?abc=xyz Is there any other way to specify query params ? 在数据包详细信息中看到的请求uri仅包含/ path且丢失了?abc = xyz还有其他方法可以指定查询参数吗? Or am I missing something here ?
还是我在这里想念什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.