title: What other headers should I be passing to Advanced Rest Client to be able to test a .js post action that requires login?
body: <p>I'm using the <code>Advanced Rest Client</code> chrome extension to test some REST operations.</p>
  
  <p>One action is defined as a POST member route on a <code>resources</code> entry in routes.rb . I'm passing along the <code>Cookie</code> header in the headers tab, and I'm also setting the <code>Accept</code> header to be <code>text/javascript, application/javascript</code>.</p>
  
  <p>No matter what, I keep getting a <code>302</code> asking me to redirect, or a <code>401</code> error saying I need to login or authenticate before continuing.</p>
  
  <p>The action has a <code>before_filter :authenticate_user!</code>, but I imagined that if I set the <code>Cookie</code> header, it would just work. What am I doing wrong?</p>