Mql5 http get/post request in a particular port.

 

Hello Coders.

I am looking for a code of mql5 http get/post request in a particular port. I have searched in our previous topics but unfortunately, those are not working for me. I have found 'wininet.dll' http get/post request which is worked in mql4 code but mql5 is not supported. When I try to do it with my mql4 code into my mql5 terminal but it's not worked.

https://www.mql5.com/en/articles/73

I have found this above tutorial but it does not work. Do you have any http get/post request code please share with me. This will save my day. Thanks in Advanced.

Using WinInet.dll for Data Exchange between Terminals via the Internet
Using WinInet.dll for Data Exchange between Terminals via the Internet
  • www.mql5.com
MetaTrader 5 opens up unique opportunities for users, using a number of new user interface elements in its arsenal. Because of this, the functions that were previously unavailable can now be used to the maximum. In this lesson we will learn to: use basic Internet technologies; exchange data between terminals via the server; create a generic...
 

In WebRequest, custom ports were unsupported, at least in the past:

Форум по трейдингу, автоматическим торговым системам и тестированию торговых стратегий

WebRequest...

Rashid Umarov, 2014.11.10 09:27

The port itself can not be specified. The rule is:

- if the address starts with https: //, then port 443. Otherwise, port 80.

Custom dlls should help.
 
Stanislav Korotky:

In WebRequest, custom ports were unsupported, at least in the past:

Custom dlls should help.

 WinInet.dll 

I have used the above 'dll' file it worked well in 'mql4' but 'mql5' is not working for me.

WebRequest doesn't support custom port. My port is like '8080'.

 
Al Imran Suvro:

 WinInet.dll 

I have used the above 'dll' file it worked well in 'mql4' but 'mql5' is not working for me.

How is it not working exactly? What is your environment? There are 2 versions - 32 and 64 bit - try appropriate.

 
Stanislav Korotky:

How is it not working exactly? What is your environment? There are 2 versions - 32 and 64 bit - try appropriate.

Thank you so much. Now I am using WebRequest to solved my problem. Another word gives up to finish my task earlier.

Reason: