放置在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有没有其他方法来指定查询参数?或者我在这里遗漏了什么?
这是在最新版本的扩展v1.0.36以后修复的