title: Sending large number of requests to server on node.js
body: <p>I have the following:</p>
  
  <pre><code> var tempServer=require("./myHttp");
  
   tempServer.startServer(8008,{'/fun1':fun1 , '/fun2': fun2 , '/fun3':fun3 , '/fun4':fun4},"www");
  </code></pre>
  
  <p>which creates a server on localhost:8008.</p>
  
  <p>and if i type in the url line in my browser the following:</p>
  
  <pre><code> localhost:http://localhost:8008/fun2
  </code></pre>
  
  <p>it will call fun2 function and will perform what is needed.</p>
  
  <p>having said that, </p>
  
  <p>how can i write a script function (fun2) which simulates a call for a large number </p>
  
  <p>of requests (say 10000) to tempServer?</p>
  
  <p>any help will be much appreciated!</p>