[MQL4] WebRequest with https returns false on VPS
Let me say first, this is just for MQL programmer. Today, I have troubled with this topic.
My EA has the function WebRequest and the accessing protocol was https. When I run it on my PC, there was no trouble but when on VPS, it won’t work.
I wasted a hour to solve this case and finally figured it out. When you use WebRequest, the PORT is 80 for “http://” and 443 for “https://”. However, the VPS I’m using probably uses the port 443 for other resource. (Don’t ask me why…)
So, in order to use WebRequest with https, you have to set the port 443 free. If you can’t do that , forget about using https.