Allow WebRequest for listed URL

To add comments, please log in or register
Frederick Langemark
2273
Frederick Langemark  

Hello,

I have an expert and I would like it to make a WebRequest to verify the current version number of the expert, and alert the user if there is a newer version.

I am wondering if there is a way to add the URL to the Allow WebRequest from inside the expert. I assume this may be a security issue, which is why it is set up the way it is, but it would be much easier than having to give instructions on how to add the URL.

Is it possible?

Thanks in advance.

- Fred

Jack Thomas
1626
Jack Thomas  
Frederick Langemark:

Hello,

I have an expert and I would like it to make a WebRequest to verify the current version number of the expert, and alert the user if there is a newer version.

I am wondering if there is a way to add the URL to the Allow WebRequest from inside the expert. I assume this may be a security issue, which is why it is set up the way it is, but it would be much easier than having to give instructions on how to add the URL.

Is it possible?

Thanks in advance.

- Fred

See the documentation.

https://www.mql5.com/en/docs/common/webrequest

Documentation on MQL5: Common Functions / WebRequest
Documentation on MQL5: Common Functions / WebRequest
  • www.mql5.com
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...
Frederick Langemark
2273
Frederick Langemark  
Jack Thomas:

See the documentation.

https://www.mql5.com/en/docs/common/webrequest

Hi Jack,

I read the documentation, that's how I got to work in the first place. Are you positive there is no way to do what I'm asking.

I installed Autochartist, and the added URLs to the allowed URL list without me adding them, which is why I am asking the question.

- Fred

Jack Thomas
1626
Jack Thomas  
Frederick Langemark:

Hi Jack,

I read the documentation, that's how I got to work in the first place. Are you positive there is no way to do what I'm asking.

I installed Autochartist, and the added URLs to the allowed URL list without me adding them, which is why I am asking the question.

- Fred

Hi Fred,

I think you also need to add them to the allowed webrequest url list.

- Jack

Frederick Langemark
2273
Frederick Langemark  
Jack Thomas:

Hi Fred,

I think you also need to add them to the allowed webrequest url list.

- Jack

Yes, I understand that.

I assume Autochartist adds it to the list automatically using the Windows Installer, but I just wanted to put it out there and see if that was the way, or if there was another way within MQL4.

Jack Thomas
1626
Jack Thomas  
Frederick Langemark:

Yes, I understand that.

I assume Autochartist adds it to the list automatically using the Windows Installer, but I just wanted to put it out there and see if that was the way, or if there was another way within MQL4.

I'm sending you a private message.

To add comments, please log in or register