Call php file from mql5 ea

 

Hi,

How to call a php file which is hosted in my server?

How to pass post variables from mql5 ea to php?

 
nithinpiratez: How to call a php file which is hosted in my server? How to pass post variables from mql5 ea to php?
By using the WebRequest function. You should also do some research on the HTTP protocol.
Documentation on MQL5: Network Functions / WebRequest
Documentation on MQL5: Network Functions / WebRequest
  • www.mql5.com
WebRequest - Network Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
Fernando Carreiro #:
By using the WebRequest function. You should also do some research on the HTTP protocol.

Very easy to do it using WebRequest function!

Perfect answer. 


just do not forget to to ADD the destination URL on the MT5 [ Configuration -> Tools -> Options } under field "Allow WebRequest for Listed URL] by adding the destination URL