Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 14599

Scripting • /tool/fetch - 6.x vs 7.x

$
0
0
Trying to send messages to Teams. Should be easy enough, no? Well, not so much. This exact command runs perfectly fine in ROS 7.14, but not in 6.49
Code:
/tool fetch http-method=post http-header-field="Content-Type: application/json" http-data="{\"text\": \"Test Message\"}" https://mycompany.webhook.office.com/webhookb2/UUID1@UUID2/IncomingWebhook/LONGSTRING/UUID3
We are not using ROS7 in production yet, so I never even thought to test it on that platform until today, since I have a pair of 2116's on the bench for other testing.

So, what's wrong with the command that it returns a "400 Bad Request" when run from ROS6?

Statistics: Posted by troy — Mon Mar 11, 2024 7:25 pm



Viewing all articles
Browse latest Browse all 14599

Trending Articles