HTTP requests for new MQL4 (tested in build 600) – library MetaTrader 4

Description:

This is a simple MQL4 wrapper that uses Windows native wininet.dll. It allows you to send HTTP requests (currently supported only GET method) to a remote destination and read the body response from MQL that was compiled in build 600 and newer (not in a strict mode).

For latest version, issues tracker and contribution please refer to project’s Github repository.

Example:

#include <mql4-mysql.mqh>

int start () {

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

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

  return(0);
}

Source:

Source is distributed at Github repository. Any contribution is highly appreciated.

Credits:

This library was based on following great resources:

HTTP Wininet sample:

EasyXML parser:

📈 ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks