title: Setting headers and page redirection using angular
body: <p>I am developing a login application, in which I have angular communicating with REST interface for authenticating a user. I am usin $http for this task. Now, I need to redirect my page to another URL(this may be on same or different domain). Also, I need to set the headers during this process. </p>
  
  <p>Please help me with an implementation in order to proceed with this task.</p>