title: Set HTTP header for one request
body: <p>I have one particular request in my app that requires Basic authentication, so I need to set the Authorization header for that request. I read about <a href="http://docs.angularjs.org/api/ng.$http" rel="noreferrer">setting HTTP request headers</a>, but from what I can tell, it will set that header for all requests of that method. I have something like this in my code:</p>
  
  <pre><code>$http.defaults.headers.post.Authorization = "Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==";
  </code></pre>
  
  <p>But I don't want every one of my post requests sending this header. Is there any way to send the header just for the one request I want? Or do I have to remove it after my request?</p>