PS.: wine version is 3.0.2
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?
I've been read this topic before, but how do I apply this solution?
Marco vd Heijden:
I know nothing about programming, and I don't have access to the EA's source code.
TLS relates to Transport Layer Security.
Have you tried the example ?
Marcio Vianna:
I know nothing about programming, and I don't have access to the EA's source code.
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.Forum on trading, automated trading systems and testing trading strategies
Please be gentle and friendly on this forum.
- Please be polite when communicating on this website. Refrain from statements that may offend or insult other users.
- Negative discussions of any banking, brokerage and other financial institutions are not allowed.
- Any discussions about personal relations between the community members are not tolerated.
- Coarse language, advertising messages, spamming and flooding are forbidden.
- Repeated violation of the Rules, ignoring moderator's remarks and open disrespect for the website Administration will lead to an account termination.
- The website Administration may implement any changes to the Rules it deems necessary.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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? =)