Using API myfxbook from MQL

Jun 08, 2015 at 15:00
2,513 व्यू
2 Replies
तबसे मेंबर है Jan 31, 2013   1 पोस्टों
Jun 08, 2015 at 15:00
Hi!

Help please how correctly to make login from MQL to myfxbook through WebRequest.
// .........................
string headers;
char post [], result [];
StringToCharArray ('[email protected]&password=123456', post); // Must specify string length; otherwise array has terminating null character in it
int res = WebRequest ('POST', 'https://www.myfxbook.com/api/login.json', '', NULL, 10000, post, ArraySize (post), result, headers);
Print ('Status code:', res, ', error:', GetLastError ());
Print ('Server response:', CharArrayToString (result));
// ..............................

Result:
Status code: -1, error: 5203
Server response: send request failed [2148074278]

WebRequest to sites https://www.myfxbook.com and https://www.myfxbook.com/ in MT4 allowed
Thank you.
तबसे मेंबर है Aug 27, 2015   1 पोस्टों
Aug 27, 2015 at 08:56
😕
तबसे मेंबर है Mar 14, 2014   1 पोस्टों
Mar 18, 2016 at 07:10
int result = WebRequest('GET', 'https://www.myfxbook.com/api/login.json', NULL, NULL, Timeout, post, 0, result, resultHeaders);
You must be connected to Myfxbook in order to leave a comment
*व्यवसायिक इस्तेमाल और स्पैम को ब्रदाश नहीं किया जाएगा, और इसका परिणाम खाता को बन्द करना भी हो सकता है.
टिप: किसी चित्र या यूट्यूब या URL को पोस्ट करने से वे अपने आप आपके पोस्ट में आजाएगा!
टिप: @ चिन्ह को टाइप करें उपभोगता के नाम को अपने आप करने के लिए जो इस चर्चा में भाग ले रहा है.