【发布时间】:2018-12-23 23:23:20
【问题描述】:
如果我尝试获取一些数据(简单整数)并发送到外部服务器,如下所示 - 一切正常
:local tArr; :set $tArr [/caps-man registration-table print count-only]; :put $tArr; /tool fetch mode=http url="http://8d11b038.eu.ngrok.io/mikrotik-api/post.php" http-method=post http-data="payload=$tArr" keep-result=no;
但如果我尝试从打印件发送数据(下面的示例),php 会转储空有效负载
:local tArr; :set $tArr [/caps-man registration-table print]; :put $tArr; /tool fetch mode=http url="http://8d11b038.eu.ngrok.io/mikrotik-api/post.php" http-method=post http-data="payload=$tArr" keep-result=no;
哪里出了问题?如何从打印中发送数据?
以及如何只发送特定的列?
【问题讨论】: