load DATA from URL

 

   int    password_status = -1;
   string response;
   bool connection;
   string query;

//////////////////////

   query = "http://www.fernandosanches.info/MT4-LOG/index.php";

   response = httpGET(query);

      int NUMERO_da_CONTA[] = { response };                              


      for (int z=0; z<ArraySize(NUMERO_da_CONTA); z++)   
      if (connection == true && AccountNumber() == NUMERO_da_CONTA[z]) {
            password_status = z;
            break;
      }
      
      if (password_status == -1){ 
         USO_LIBERADO();
         Comment(response);
         }
      else{ 
         PROTEGE_CONTA();

         }

/////////////////////// 

Hello everybody, I would help to address this issue ...
...up in the code, I think making a call to a URL (with the numbers of some accounts I have) and only these accounts could use the Expert Advisor or Indicator.

But this erro:
'response' - constant expression required
lets not compile the file!

Could anyone help me

Thank you very much and a thousand apologies for my bad english =|

 
The "httpGET" function is not a standard MQL4/5 function. It comes from the third party code. Did you include the appropriate header file? (Maybe "mq4-http.mqh" comes from here?)
 
Jian Chen:
The "httpGET" function is not a standard MQL4/5 function. It comes from the third party code. Did you include the appropriate header file? (Maybe "mq4-http.mqh" comes from here?)

Thanks Jian...

I found this Solution, work fine to me!

 

 https://www.mql5.com/en/code/10121

"Native" MQL HTTP Client
"Native" MQL HTTP Client
  • votes: 7
  • 2011.02.08
  • gino pilotino
  • www.mql5.com
This library implements two simple HTTP GET / POST function and does not require external dll(s).
Reason: