title: Passing a parameter to http.get in Node.JS
body: <p>I'm doing a http or https get request (depends on the url) and I want to pass the same callback function to both http or https get request.<br>
  my problem is that I also want to pass another parameter to the callback function.<br>
  How can I do it?</p>
  
  <p>For example how can I pass myParameter to the callback function?</p>
  
  <pre><code>var myParameter = 1
  if(url.indexOf('https') === 0 ) {
      https.get(url, callbackFunc);
  else{
      http.get(url, callbackFunc);
  }
  
  function callbackFunc(res, myParameter){}
  </code></pre>