• Well, you should be able to specify them as an option to get, but if you're going that far it might be better to be more explicit:

       var options = {
          host: 'server.name.com',
          port: '80',
          path:'/my/path.php',
          method:'GET',
          headers: { "A":"B" }
        };
        var req = require("http").request(options, function(res)  { ... });
    

    The Xively example does this, but with POST.

About

Avatar for Gordon @Gordon started