S
S
Seryoga2015-03-03 00:46:29
Mikrotik
Seryoga, 2015-03-03 00:46:29

How to send GET/POST from Mikrotik?

Is it possible to send a GET or POST request using a Mikrotik script?
I try like this:

:local str "[/ip fi mangle get number=3 bytes]" 
/tool fetch url="http://192.168.XXX.XXX/Rx.php?Rx=&str" mode=http\

but the question mark is eaten up in the terminal, and an error is thrown - failure: closing connection: <404 Not Found>
How can I pass parameters to a database that is located on another device on the local network?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Seryoga, 2015-03-06
@sirocco

I got it myself. You need to put " \ " in front of the question mark .
This is how it works:

/tool fetch url="http://192.168.XXX.XXX/Rx.php\?Rx=&str" mode=http\

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question