title: Why isn't the postpagehtml getting sent to the browser?
body: <p>Why isn't the postpagehtml getting sent to the browser? The request definitely does get received. Tested by logging request.url</p>
  <pre><code>var http = require('http');
  var qs = require('querystring');
  var url = require('url')
  var Pitem;
  var postpagehtml = require('fs').readFileSync('postpage.html');
  
  var form = require('fs').readFileSync('allposts.html');
  http.createServer(function (request, response) {
  //var ReqURL = request.url;
  //console.log(ReqURL);
  if (request.method === &quot;GET&quot; &amp;&amp; request.url ===&quot;/&quot;) {
  response.writeHead(200, {'Content-Type': 'text/html'});
  response.end(form);}
  //var ReqURL = request.url;
  //console.log(ReqURL);
  if (request.method === &quot;GET&quot; &amp;&amp; request.url === &quot;/getData&quot;) {
  //var ReqURL = request.url;
  //console.log(ReqURL);
  
  response.writeHead(200, {'Content-Type': 'text/html'});
  response.write(postpagehtml);
  response.end(); 
  }
  }).listen(1000);
  </code></pre>