Scripts: Automatic Posting with WebRequest()

To add comments, please log in or register
Automated-Trading
148117
Automated-Trading  

Automatic Posting with WebRequest():

An example of posting a message containing an image on the MQL5.com website using the WebRequest() function. This is an example of how to authorize using a login and a password, and to insert an image into a text message.

Warning: avoid sending too frequent automated requests to web sites, because most of sites block too frequent calls. The mql5.com site also has protection against too frequent requests, and an error in the code may lead to blocking of your account.

When you start the script, enter your mql5.com login and password.

#property description "Sample script posting a user message "
#property description "on the wall on mql5.com"

input string InpLogin   ="";             //Your MQL5.com account
input string InpPassword="";             //Your account password
input string InpFileName="EURUSDM5.png"; //An image in folder MQL5/Files/
input string InpFileType="image/png";    //Correct mime type of the image

Author: MetaQuotes Software Corp.

Satyam Shivam
27009
Satyam Shivam  

I am continuously getting the following error. :


2017.04.03 17:06:46.138 webrequest_publicationscript (USDJPY,H1) Error, authorization data not found in the server response (check login/password)





My id and pwd are correct. 

Satyam Shivam
27009
Satyam Shivam  

Kindly request you to proved some help on this code. 

This code is not working . I have tried with multiple accounts n multiple systems and multiple internet networks. 


Thank you

Arnold Garth
270
Arnold Garth  
Is there anyone get this code working??????????????????? Please help
To add comments, please log in or register