Edit Your Comment
Using API myfxbook from MQL
会员从Jan 31, 2013开始
1帖子
Jun 08, 2015 at 15:00
会员从Jan 31, 2013开始
1帖子
Hi!
Help please how correctly to make login from MQL to myfxbook through WebRequest.
// .........................
string headers;
char post [], result [];
StringToCharArray ("email=blabla@gmail.com&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 http://www.myfxbook.com and https://www.myfxbook.com/ in MT4 allowed
Thank you.
Help please how correctly to make login from MQL to myfxbook through WebRequest.
// .........................
string headers;
char post [], result [];
StringToCharArray ("email=blabla@gmail.com&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 http://www.myfxbook.com and https://www.myfxbook.com/ in MT4 allowed
Thank you.
会员从Aug 27, 2015开始
1帖子
会员从Mar 14, 2014开始
1帖子
Mar 18, 2016 at 07:10
会员从Mar 14, 2014开始
1帖子
int result = WebRequest("GET", "https://www.myfxbook.com/api/login.json", NULL, NULL, Timeout, post, 0, result, resultHeaders);

*商业用途和垃圾邮件将不被容忍,并可能导致账户终止。
提示:发布图片/YouTube网址会自动嵌入到您的帖子中!
提示:键入@符号,自动完成参与此讨论的用户名。