title: Why won't my ExpressJS properly execute a request command?
body: <pre><code>  searchJSON = {
      location: 'NYC',
      text: text,
      authID: apiKey
    };
    searchRequest = {
      host: siteUrl,
      port: 80,
      path: '/search',
      method: 'GET'
    };
  searchResponse = makeRequest(searchRequest, searchJSON);
  makeRequest = function(options, data) {
    var req;
    if (typeof data !== 'string') {
      data = JSON.stringify(data);
    }
    req = http.get(options, function(res) {
      var body;
      body = '';
      res.on('data', function(chunk) {
        body += chunk;
      });
      return res.on('end', function() {
        console.log(body);
      });
    });
    console.log(data);
    req.write(data);
    req.end();
  };
  </code></pre>
  
  <p>Shouldn't this translate to <code>http://www.somesite.com/search?location=NYC&amp;text=text&amp;authID=[mykey]</code>?</p>