Using WinINet's HTTP directly in mql4 - MetaTrader 4 script
This is a "concept" script I developed to test WinINet functions to load HTTP pages directly from mql4
The code imports the wininet.dll original Windows library and then calls all the required functions as described in the MSDN documentation, simply converting the mql data type:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa383630(v=vs.85).aspx
You just run the script on the chart and you will see the MessageBox with the https://www.mql4.com html page
I'm using this code in one of my EAs to upload a set of signals from my ASP.NET site and call the page that sends the data file
This is a simple C# asp.net page code to send a file:
f (file.exists(@ "C:\...my data directory...\signs.csv" ))
Response.TransmitFile(@"C:\...my data directory...\signs.csv");
response.Flush();
response.End();
Attachment download
📎 TestHTTP.mq4 (1.8 KB)
Source: MQL5 #10644
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •