Moved
The active curl2rsc tool now lives at tikoci.github.io/curl2rsc.html.
This legacy page should redirect automatically. If it does not, use the link above.
Converts
curl
to a web service call on Mikrotik's RouterOS, via Postman's codegens.
Most curl commands line options should work, and be converted to RouterOS scripting commands. But not everything can be converted, such as file operations. But a lot can! The tool will attempt to convert as much as it can, even if not in complete fidelity with curl. So use this page as guide, not a reference.
Convert
curl
request to
/tool/fetch
Known Issues:
- The backend service may go to "sleep", so an initial request may take up to 30 seconds to appear. Future conversion requests should happen within a few seconds, as you type.
- While
--jsonis valid in [modern] curl, it is not known the parser, so the content type must be set using-H 'Content-Type: application/json'manually. - RouterOS does not support handling 3xx redirects, so
-Land--locationare ignored.
* Disclaimer
This site is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Mikrotik. All product and company names are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.