I Need A Script

MQL4 Скрипты

Техническое задание

Hello

 

I want a script to login to this website  http://www.investing.com/members-admin/auth/login and after login the script goes to this page in the website http://www.investing.com/economic-calendar/ and this page i want to download it as htm. through the script

To the  folder MQL4/Files and then i will work with the file forther , so basically this is the job in general and i will come with the detail and more spesific when i get i get a programer that can help me with that !

It is very simple not complecated i only want to login through the Webrequest function and then write the page into a htm. file in the  MQL4/Files

I have a samble of the script that i have created but i have problem with login in and after that go to the page http://www.investing.com/economic-calendar/ this is what i need help for !

 //+------------------------------------------------------------------+ 

//| Login to Website                                                 | 

//+------------------------------------------------------------------+ 

void OnStart()

  { 

   int    res;     // To receive the operation execution result 

   char   data[];  // Data array to send POST requests 

   char   result[];// page content.

   

   string str="Login="+"user name"+"&Password="+"password"; // this is where i put the login and password <------



//--- Create the body of the POST request for authorization 

   ArrayResize(data,StringToCharArray(str,data,0,WHOLE_ARRAY,CP_UTF8)-1); 

//--- Resetting error code 

   ResetLastError(); 

//--- Authorization request 

   res=WebRequest("POST","http://www.investing.com/members-admin/auth/login",NULL,0,data,result,str); 

//--- If authorization failed 

   if(res!=200) 

     { 

      Print("Authorization error #"+(string)res+", LastError="+(string)GetLastError()); 

      return; 

     } 

      //--- Save the data to a file 

      int filehandle=FileOpen("GoogleFinance.htm",FILE_WRITE|FILE_BIN); 

      //--- Checking errors 

      if(filehandle!=INVALID_HANDLE) 

        { 

         //--- Save the contents of the result[] array to a file 

         FileWriteArray(filehandle,result,0,ArraySize(result)); 

         //--- Close the file 

         FileClose(filehandle); 

        }

         

   return;

  }

You can see the source code this is the idea ! it is very simple to understand what i want i just want to login to the website then go to the page and write this page to a htm. file in the MQL4/Files filder.

 

important thing also is i want the source code file and in the source code i want the programmer to use //comment for each line explaining the source code .

 

I hope there is some programers that can help me with that.

 

 Thnaks. 

Откликнулись

1
Разработчик 1
Оценка
(53)
Проекты
74
26%
Арбитраж
30
10% / 63%
Просрочено
22
30%
Свободен
2
Разработчик 2
Оценка
(164)
Проекты
218
50%
Арбитраж
6
17% / 67%
Просрочено
11
5%
Свободен
3
Разработчик 3
Оценка
(39)
Проекты
44
16%
Арбитраж
1
100% / 0%
Просрочено
7
16%
Свободен
4
Разработчик 4
Оценка
(64)
Проекты
144
46%
Арбитраж
20
40% / 15%
Просрочено
32
22%
Работает

Информация о проекте

Бюджет
10 - 22 USD
Сроки выполнения
от 2 до 7 дн.