Allow WebRequest for listed URL

 

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

 
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/network/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...
 
Jack Thomas:

See the documentation.

https://www.mql5.com/en/docs/network/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

 
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

 
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.

 
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.

 
any update for this problem? i hv two computer..its works with one of the computer but not anothers one.. For now, i just notice there error webrequest_request failed
 
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.


Go to the Tools>Options>Expert Advisors>allow and add new URl
 
Jack Thomas #:

I'm sending you a private message.

Hi I have same issue.  Can you plz send me massage too.