HTTP requests for new MQL4 (tested in build 600)

HTTP requests for new MQL4 (tested in build 600)

by Dr.Hamdi Boukamcha
HTTP requests for brand spanking new MQL4 (examined in construct 600)
Writer: lukins (2014.02.12 15:forty four)
Downloaded: 1
mq4-http.mqh (2.7 Kb) View

This can be a easy MQL4 wrapper that makes use of Home windows native wininet.dll. It permits you to ship HTTP requests (at present supported solely GET technique) to a distant vacation spot and skim the physique response from MQL that was compiled in construct 600 and newer (not in a strict mode).

For up to date model, points tracker and contribution please seek advice from undertaking’s Github repository.

HTTP requests for new MQL4 (tested in build 600)


#embrace <mql4-mysql.mqh>

int begin () 

  string myIP = httpGET("http://icanhazip.com/");

  Print("My machine's IP is ", myIP);



Supply is distributed at Github repository. Any contribution is very appreciated.


This library was based mostly on following nice assets:

– HTTP Wininet pattern: http://codebase.mql4.com/8115

– EasyXML parser: http://www.mql5.com/en/code/1998

Share this article

Leave a comment