Send Global Variable in Hotspot redirection

Hello! I’m new in the forum and in scripting too.

I’ve made this script for get WLAN1 macAddress (i need send that info to external portal hotspot).

  1. This is the script i made.. when I run it, I see in terminal that variable have been succesfull set:
    ########################
    :global macWlanLab [/interface get [/interface find default-name=wlan1] mac-address ];
    log info “$macWlanLab”;
    ################################
  2. I also see that “enviroment” is well set here:
    [admin@Gateway] /system script environment> print

NAME VALUE

0 macWlanLab XX:XX:XX:YY:YY:YY
################################
3) In other hand I’ve configure the login.html hotspot, with this redirection params setting:

**** ################################ 4) But when the redirection happends.. The value is not sent: (see Image "Capture.PNG" attached). ################################

Any help or diferrent approuch to send this custom param in first redirecction I’ll be really grateful..

Thanks!
Eric
Capture.PNG