Community discussions

MikroTik App
 
User avatar
madmouser1
just joined
Topic Author
Posts: 7
Joined: Sun Jan 08, 2017 7:27 pm

POST request from curl example

Sat Oct 31, 2020 2:19 am

Hi all,

Please assist, what is the correct fetch command in 6.47.4 for the following Curl command
curl -i -XPOST 'http://192.168.aa.bb:8086/write?db=lte' --data-binary 'rssi,device=lte value=-50'
Many thanks
 
User avatar
madmouser1
just joined
Topic Author
Posts: 7
Joined: Sun Jan 08, 2017 7:27 pm

Re: POST request from curl example

Mon Nov 02, 2020 11:29 am

Hi all, just an update
/tool fetch http-method=post http-data="rssi,device=lte value=-60" url="http://192.168.aa.bb:8086/write\3Fdb=LTE"
Is working, however the "--data-binary" is not explicitly set yet.
Please note the ? as\3F
 
User avatar
SiB
Forum Guru
Forum Guru
Posts: 1314
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: POST request from curl example

Mon Nov 02, 2020 2:26 pm

better is report RSRP, SINR, CQI
MTCNA + MTCRE + MTCINE | ~600 users at ~150 RouterBoards in EMEA | Telegram: @SiB_PL
WinBox Tip: F6 works as ALT+TAB | Gliffy.com - free network schematic | prnt.sc - free ScreenShot software
At vacation until 15.jan.2021

Who is online

Users browsing this forum: No registered users and 36 guests