Fetch to variable

Hi

Im dashboardifing our Mikrotik hotspots so they can pull some basic information down from a cloud based admin system (such as SSID) and whilst I had this working fine , Fetch was writing a file each time which I am keen to remove.

Im trying to simply get a one work line back from the HTTP server and store it straight into a variable - any ideas if this is possible, and if so, what I may be doing wrong?

:global content [/tool fetch url="http://dashboard.domain.com/checkin.php?ssid=$oldssid"  keep-result=no   mode=http]
:put "content=$content"

$content remains empty

Hello,

From my testing it doesn’t look like it will work by assigning the content directly to a variable. Based on the information at this link, http://forum.mikrotik.com/t/dyndns-script-that-doesnt-write-to-flash-every-minute/49700/1 it would appear that it confirms these findings.

Regards.

I was pretty sure it wasn’t possible, which is a shame.

I’ll stick to writing to a file then - If i only send a reply from the HTTP server when it has something for the router/AP then I just have to figure out how to stop the MT saving a zero length wget reply to a file.