title: Express js - can't redirect
body: <p>I am trying to do the following:</p>
  
  <p><strong>from client</strong></p>
  
  <pre><code>var req =  jQuery.post(
    "http://www.example.com:3000"+"/dologin", 
    {"username" : username, "password" : password}).error(function(){
      alert("an error occurred");
    });
  </code></pre>
  
  <p><strong>in express root</strong></p>
  
  <pre><code>app.post('/dologin',function(req, res) {
    res.redirect('http://bbc.co.uk');
  });
  </code></pre>
  
  <p><strong>result passed back</strong></p>
  
  <pre><code>&lt;p&gt;Moved Temporarily. Redirecting to &lt;a href="http://bbc.co.uk"&gt;http://bbc.co.uk&lt;/a&gt;&lt;/p&gt;
  </code></pre>
  
  <p>Seems that if I do post from jquery the redirect will not work. Does anyone know a way to force it to redirect?</p>