SiddhiQL

时间:2018-09-04 04:36:32

标签: siddhi

放置在Publisher.url中的查询参数未发送到服务器。 这是代码段

  @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;

使用Wireshark捕获的数据包 enter image description here

在数据包详细信息中看到的请求uri仅包含/ path,并且缺少?abc = xyz 还有其他方法可以指定查询参数吗?还是我在这里想念什么?

1 个答案:

答案 0 :(得分:0)

此问题已在扩展程序的最新版本v1.0.36及更高版本中修复