send POST to nodes save file.txt :  webrequest.mq4 

> //+------------------------------------------------------------------+
> //| webrequest.mq4 //| Copyright 2013, apla //| -
> //+------------------------------------------------------------------+
> #property copyright "Copyright 2013, apla"
> #property link      "-"
> 
> int start() { //----
> 
>   //WebRequest   string cookie = NULL;   string headers =
> "Content-Type: application/x-www-form-urlencoded";   int res;   //url
> = localhost:8080   string url = "localhost";   char post[], result[];   string signal =
> "account="+AccountNumber()+"&balance="+AccountBalance()+"&equity="+AccountEquity();
> StringToCharArray(signal, post); Print(signal);   int timeout = 50000;
> // 5 sec   res = WebRequest("POST", url, cookie, NULL, timeout, post,
> ArraySize(post), result, headers);
> 
>   Print("Status code: " , res, ", error: ", GetLastError());
> 
> //----    return(0); }
> //+------------------------------------------------------------------+



---------------

I want to send the file from mt4 webrequest.mq4 to the node js this Site section that can be given up, however.

MT4 >> Nodejs 

??? POST[] ??? (javascript nodes)
account, balance, equity
Which I do not know how to get the POST.

write file.js

> var http = require('http'); var fs = require('fs');
> 
> fs.writeFile("file.txt",??? POST[] ???, function(err,data) {
>     if (err) throw err; 
>     console.log('The file was saved!');
> 
> http.createServer(function(req, res) {
>     res.writeHead(200, {'Content-Type': 'text/plain'});
>     res.end('OK'); // Send the file data to the browser. }).listen(3000);   	console.log('Server running at
> http://localhost:8080/'); });





