title: How to send parameters to Node.JS basic server
body: <p>I am learning Node.JS and this is the most commonly available example of server by Node.JS</p>
  
  <pre><code>// Load the http module to create an http server.
  var http = require('http');
  
  // Configure our HTTP server to respond with Hello World to all requests.
  var server = http.createServer(function (request, response) {
  //    var name=request.getParameter('name');
  //    console.log(name);
      console.log('res: ' + JSON.stringify(response.body));
      response.writeHead(200, {"Content-Type": "text/plain"});
      response.end("Hello World\n");
  });
  // Listen on port 8000, IP defaults to 127.0.0.1
  server.listen(8000);
  </code></pre>
  
  <p>Now when I am executing this from console it works fine, and from browser also it works fine, by hitting the URL: localhost:8000</p>
  
  <p>But now I also want to send some parameters to this server, so I tried localhost:8000/?name=John and few more URL's but none of them work, Can anyone help me?</p>
  
  <p>Thanks in advance!!</p>