Community discussions

MUM Europe 2020
 
angelofilippi
just joined
Topic Author
Posts: 1
Joined: Thu Feb 13, 2020 12:51 am

help whit Curl

Thu Feb 13, 2020 12:54 am

Hello. I need some assistance with the following issue.
my goal is send data via fetch command.

i want to convert this curl
curl -XPOST 'http://172.16.10.250:8086/write?db=mikrotik' --data-binary 'test_load,host=njxap1dbadm01 value=13.65'

i'm starting from this whitout look

/tool fetch http-method=post
http-content-type="application/json"
http-data="{test_load,host=njxap1dbadm01 value=13.65}"url= "http://172.16.10.250/write?db=mikrotik" port=8060

any suggestions?

Thank you
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 24417
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: help whit Curl

Thu Feb 13, 2020 2:36 pm

So what is the problem with this command? Check the web server logs, what is actually received.
No answer to your question? How to write posts

Who is online

Users browsing this forum: No registered users and 11 guests