UNPKG

node-red-contrib-web-worldmap

Version:

A Node-RED node to provide a web page of a world map for plotting things on.

17 lines (14 loc) 386 B
http = require('http'); cgi = require('../cgi'); var server = http.createServer( cgi(__dirname + '/cgi-bin/hello.cgi') ); server.listen(5555, function() { console.log('server listening'); var client = http.createClient(5555, '127.0.0.1'); var req = client.request('GET', '/?test=1'); req.on('response', function (res) { console.log(res.headers); }); req.end(); });