Access Violation Error when changing the url

 

Hello,i've written a dll to upload file via webrequest for testing porpuses.


The dll is working fine when the url is LOCALHOST and i can see the uploaded data in my server folder.

When i change the link to test an api,using the same code,but changing only the URL i get :

 

my mql5 code is simple:

#import "IAIA.dll"
string get();
#import
void OnStart()
  {
Print(get());
  }


is there any reason that changing the URL could give us this error ?


Thank you !


obs: the dll works with any URL without error outside MT5

Reason: