Библиотека "Native" MQL HTTP Client

FXWizard

Гуру форума
Библиотека "Native" MQL HTTP Client

Библиотека для связи с web сервером. Умеет посылать GET/POST запросы и принимать ответы от сервера

Пример


#include <ghttp.mqh>

string params[2][2];

params[0][0] = "key1";

params[0][1] = "value1";

params[1][0] = "key2";
params[1][1] = "value2";

// for multiple file upload
string filenames[2][2];

filenames[0][0] = "uploaded1"; // name of form field for file upload
filenames[0][1] = "test1.txt"; // file name in experts/files/ subfolder

filenames[1][0] = "uploaded2";
filenames[1][1] = "test2.txt";

string response;

HttpPOST("127.0.0.1", "/upload.php", params, filenames, response);
HttpGET("http://www.google.com?q=hello", response);
Comment(response);
 

Вложения

  • ghttp.mqh
    9,6 КБ · Просмотры: 30
Верх