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: 1888
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
 
IgorOV
just joined
Posts: 1
Joined: Sat Oct 22, 2022 3:56 am

Re: POST request from curl example

Sat Oct 22, 2022 3:59 am

I would like someone to help converting curl command for me, like above

thanks in advance

curl -d "{\"number\":\"112233445566778899\",\"message\":\"text here\"}" -H "Authorization:token_id" -H "Content-Type:application/json" -X POST https://site_teste.com
Last edited by IgorOV on Sat Oct 22, 2022 4:01 am, edited 1 time in total.

Who is online

Users browsing this forum: JDF and 12 guests