Nodejs


01

Mar 2015

Nodejs Multiple Http Get Example

Recently one of buddy asked me to create an app that would loop through the links from the sitemap.xml and make HTTP GET request. I said, sure why not, but don’t ask me what he wanted to do with it. In case somebody has similar needs then below is the sample code. var http = require('http'); var URL = require('url'); var parseString = require('xml2js').parseString; var _ =...

Read More