webrequest

 
Hello there. How can I check if the code side (Allow WebRequest for listed Url) is open or if the link I want is added while using Webrequest? Thx ? 
 
Kamran Huseyn: Hello there. How can I check if the code side (Allow WebRequest for listed Url) is open or if the link I want is added while using Webrequest? Thx ? 

I don't believe you can. All you can do is check if the Webrequest function fails and if so, alert the user to check that the URL is listed.

 
Fernando Carreiro:

I don't believe you can. All you can do is check if the Webrequest function fails and if so, alert the user to check that the URL is listed.

Can't I check using user32.dll or using webrequest which dll is connected? is there no way? Thx.
 
Kamran Huseyn: Can't I check using user32.dll or using webrequest which dll is connected? is there no way? Thx.

Yes, you could use WinAPI, but only if DLL calls are enabled. If this is for a Market Product or for MQL5 VPS, then DLL is not enable or allowed.

But for other situations, if it is the case that DLL calls are enabled and allowed, then you might as well use WinAPI directly for the web communications.

Reason: