title: Setting headers when using jQuery Form Plugin
body: <p>I'm using <a href="http://jquery.malsup.com/form/" rel="nofollow">JQuery Form Plugin</a> and I'm not sure how to set headers. </p>
  
  <p>I want to be able accomplish something like this:</p>
  
  <pre><code>$.ajax({
                  url: "/url",
                  data: post,
                  type: "POST",
                  beforeSend: function(jqXHR) {
                      jqXHR.setRequestHeader("foo", "bar"); 
                  },
  })
  </code></pre>
  
  <p>but the beforeSubmit event dosn't pass the jqXHR object for manipulation. Any ideas?</p>