Is there any way to receive a variable value from web ?

 

Hi 
I'm wondering if any body can help me find a way to receive some data for checking  AccountName or AccountNumber  from the web .

also I need to receive  numbers for opening/closing/modifying positions.

and we are behind of the sender website .

how can I do that ?

thanks 

 
Reza nasimi:

Hi 
I'm wondering if any body can help me find a way to receive some data for checking  AccountName or AccountNumber  from the web .

also I need to receive  numbers for opening/closing/modifying positions.

and we are behind of the sender website .

how can I do that ?

thanks 

The method is easy. The process is complex... How will you secure the transmission of this sensitive data??

;)

Documentation on MQL5: Common Functions / WebRequest
Documentation on MQL5: Common Functions / WebRequest
  • www.mql5.com
To use the WebRequest() function, add the addresses of the required servers in the list of allowed URLs in the "Expert Advisors" tab of the "Options" window. Server port is automatically selected on the basis of the specified protocol - 80 for "http://" and 443 for "https://". The WebRequest() function is synchronous, which means its breaks the...
 
Minions Labs:

The method is easy. The process is complex... How will you secure the transmission of this sensitive data?? (on both sides)

;)

 
Minions Labs:

Thank you Minions Labs !

I didn't expect for this , I am so happy 

can you please tell me more about the problem of securing data transmission?
what should I do ? or what should I be careful about?

 
Reza nasimi:

Thank you Minions Labs !

I didn't expect for this , I am so happy 

can you please tell me more about the problem of securing data transmission?
what should I do ? or what should I be careful about?

There's not much you really need to do except force redirects to https and make sure you use https in your WebRequest from MQL. I assume you want an EA to send an authentication request to your API with the active account number and name, and then your API sends back a response signaling the EA that it has or has not been authenticated?  

 
nicholi shen:

There's not much you really need to do except force redirects to https and make sure you use https in your WebRequest from MQL. I assume you want an EA to send an authentication request to your API with the active account number and name, and then your API sends back a response signaling the EA that it has or has not been authenticated?  

Hi nicholi shen

thanks for information
yes you are correct 

plus receiving opening/closing prices 

 can you please explain more about redirecting https ?
what the problem with it ?

 
Reza nasimi:

Hi nicholi shen

thanks for information
yes you are correct 

plus receiving opening/closing prices 

 can you please explain more about redirecting https ?
what the problem with it ?

That's a server side issue and not appropriate to discuss on this forum. If you need help with SSL certificates and forcing https traffic then you'll need to address that elsewhere. As for MQL you'll need to use the JSON serializer and the built-in WebRequest, and that's it. 

 
Reza nasimi:

Thank you Minions Labs !

I didn't expect for this , I am so happy 

can you please tell me more about the problem of securing data transmission?
what should I do ? or what should I be careful about?

I would never recommend any Security standard. It is up to you to figure it out.

1- Your environment.

2- You Clients.

3- Your Security.

Securing your Web exposure is the most crucial, to avoid exploits. At least follow the OWASP rules as the minimum for your internet comm... (https://www.owasp.org/index.php/Main_Page)


https://modsecurity.org/crs/

;)

 
Thanks you very much Minions Labs and nicholi shen
Reason: