A question, I can send a file via webrequest using multipart/form-data, because in webrequest
function there is the *"Header field" and the body field, it works perfectly, but how to send files using sockets? On socket how
do I send multipart?
To use the WebRequest() function, add the addresses of the required servers in the list of allowed URLs in the "Expert Advisors" tab of the "Options" window. Server port is automatically selected on the basis of the specified protocol - 80 for "http://" and 443 for "https://". The WebRequest() function is synchronous, which means its breaks the...
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.
Hi,
A question, I can send a file via webrequest using multipart/form-data, because in webrequest function there is the *"Header field" and the body field, it works perfectly, but how to send files using sockets? On socket how do I send multipart?
The follow code works (with webrequest)
I tried the follow but headers are not avaliable
{ uchar req[]; SocketTlsSend(socket_tlg,data,ArraySize(data)); int len=(int)SocketIsReadable(socket_tlg); int rsp_len=SocketTlsReadAvailable(socket_tlg,req,len); string rlt=CharArrayToString(req,0,rsp_len); Print(rlt); double a=0; }Thanks in advance