WebRequest don't work on Wine

 

I use MetaTrader 5 running on Linux through wine. The platform needs to connect to a site to release access to Expert Advisor that I use (WebRequest function), but MT5 can not connect to the site.

This error message appears on the wine's log: GnuTLS error: A fatal TLS alert has been received.

Attached 2 prints of my screen for a better understanding of the problem.

Can anyone help me? =)

 
PS.: wine version is 3.0.2
 
If you had used this you would have found this.
 
I've been read this topic before, but how do I apply this solution?
 

TLS relates to Transport Layer Security.

Have you tried the example ?

void OnStart() 
  { 
   string cookie=NULL,headers; 
   char   post[],result[]; 
   string url="https://finance.yahoo.com"; 
//--- To enable access to the server, you should add URL "https://finance.yahoo.com" 
//--- to the list of allowed URLs (Main Menu->Tools->Options, tab "Expert Advisors"): 
//--- Resetting the last error code 
   ResetLastError(); 
//--- Downloading a html page from Yahoo Finance 
   int res=WebRequest("GET",url,cookie,NULL,500,post,0,result,headers); 
   if(res==-1) 
     { 
      Print("Error in WebRequest. Error code  =",GetLastError()); 
      //--- Perhaps the URL is not listed, display a message about the necessity to add the address 
      MessageBox("Add the address '"+url+"' to the list of allowed URLs on tab 'Expert Advisors'","Error",MB_ICONINFORMATION); 
     } 
   else 
     { 
      if(res==200) 
        { 
         //--- Successful download 
         PrintFormat("The file has been successfully downloaded, File size %d byte.",ArraySize(result)); 
         //PrintFormat("Server headers: %s",headers); 
         //--- Saving the data to a file 
         int filehandle=FileOpen("url.htm",FILE_WRITE|FILE_BIN); 
         if(filehandle!=INVALID_HANDLE) 
           { 
            //--- Saving the contents of the result[] array to a file 
            FileWriteArray(filehandle,result,0,ArraySize(result)); 
            //--- Closing the file 
            FileClose(filehandle); 
           } 
         else 
            Print("Error in FileOpen. Error code =",GetLastError()); 
        } 
      else 
         PrintFormat("Downloading '%s' failed, error code %d",url,res); 
     } 
  }
 
Marcio Vianna:
I've been read this topic before, but how do I apply this solution?
Marco vd Heijden:

TLS relates to Transport Layer Security.

Have you tried the example ?

I know nothing about programming, and I don't have access to the EA's source code.
 
Marcio Vianna:
I know nothing about programming, and I don't have access to the EA's source code.

It's best to just trash it.

Without the source code there is nothing we can do.

We do not provide support for external services.
 
whroeder1:
If you had used this you would have found this.

Forum on trading, automated trading systems and testing trading strategies


Please be gentle and friendly on this forum.

  1. Please be polite when communicating on this website. Refrain from statements that may offend or insult other users.
  2. Negative discussions of any banking, brokerage and other financial institutions are not allowed.
  3. Any discussions about personal relations between the community members are not tolerated.
  4. Coarse language, advertising messages, spamming and flooding are forbidden.
  5. Repeated violation of the Rules, ignoring moderator's remarks and open disrespect for the website Administration will lead to an account termination.
  6. The website Administration may implement any changes to the Rules it deems necessary.

Reason: