sorry, the loop means 'for' loop.
I give some code (Please correct me if I am mistaken)
{
. .. ......
for (var i = 0 ; i < resourceLinks.length ; i++)
{
resourceURL = resourceLinks[i];
Info(resourceURL,i);
}
..............
}
function Info(resUrl,i)
{
..................
var options = {
host:host,
path: path,
method :'GET'
};
var request = http.request(options, function(resp) {
console.log("Got response: " + resp.statusCode);
resp.on('data', function (chunk) {
});
resp.on('end', function (chunk) {
});
});
rr.on('error', function(e) {
console.log('problem with request: ' + e.message);
}).end();
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en