Im using the Webrequest-method to communicate with my controll server. Somehow this does not work anymore.
It seems that Metatrader is stuck in a endless loop (and eventually crashes), starting at call Webrequest();. I've allready tried to inspect the situation using brackpoints, other implementations, https, non https but nothing brought me further.
int r=WebRequest(
"POST",
"api_url",
"Content-Type: application/json\r\n",
200,
data, //char array with json data
response, //char array for the response
result_headers //string for the result headers
);
However the request is processed by the server and the response is sent. (Verifed by wireshark)
##EDIT##
I've got it fixed. The problem was, i didn't specified the "Content-length" header.-field Appearently this was fine until the last couple versions...
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello
Im using the Webrequest-method to communicate with my controll server. Somehow this does not work anymore.
It seems that Metatrader is stuck in a endless loop (and eventually crashes), starting at call Webrequest();. I've allready tried to inspect the situation using brackpoints, other implementations, https, non https but nothing brought me further.
However the request is processed by the server and the response is sent. (Verifed by wireshark)
##EDIT##
I've got it fixed. The problem was, i didn't specified the "Content-length" header.-field Appearently this was fine until the last couple versions...