Fetch json

Hello.
Im trying to fetch from a DSL router the downstream/upstream values in order to dynamically set queues in case of line degradations/variations in speed/profile.

If i hit in my browser http://192.168.0.1/data/Status.json i get the array of the values.
Thing is when i try to fetch it with

/tool fetch mode=http url="http://192.168.0.1/data/Status.json" output=user

i get error

status: failed
action failed (6)

Is this supported by rOS fetch command at all? or am i missing something?

Have a peek overhere: http://forum.mikrotik.com/t/script-to-change-nordvpn-server-address/151988/9

While i included the user agent, it still produces the same error.
Does the webserver of the router require more http headers?

But you must be authenticated on browser to read that file???

Is strange the router leak something without access…

and try the command without “output…” etc.
Simply this:

/tool fetch url="http://192.168.0.1/data/Status.json"

When this work on routeros you can proceed with the next step.
Until this command do not work, all is useless

I know that the command in terminal should produce output.
And yes router does not need auth to display this info :laughing: its by design so you can get DSL rates without having logging in.
Call it ease of access.
thing is I still dont understand whats missing and it breaks

You do not have understand, do not use output=something for now…

The Router what IP have?
Is in the same lan?
have more than one ip?
get the ip from dhcp server on the DSL router or have fixed IP?
the DSL router reply only to device that have get the IP from DHCP or have the IP on DSL router pool?
obviously without any /export and without network schema, are only conjectures

replace the 192.168.0.2 with the IP of routeros device

/tool fetch url="http://192.168.0.1/data/Status.json" src-address=192.168.0.2

if do one error, put the result on forum

Its not an issue of ip / pool address. i hit the dsl router’s webpage through mikrotik gateway normally.
still same failed result with extra src-address

I have the same problems as you, i.e. the command from the browser works, while via script it doesn’t work I think it’s a syntax problem and I can’t find any information.