title: jqGrid: Set custom header before Edit only
body: <p>I need to set a custom http header before 'Edit' (PUT) only. 
  I tried the loadBeforeSend as mentioned here - <a href="https://stackoverflow.com/questions/5706579/how-to-set-request-header-to-the-ajax-object-for-jqgrid/5706690#5706690">How to set request header to the ajax object for jqGrid</a></p>
  
  <pre><code>loadBeforeSend: function(jqXHR) {
                  alert('loadBeforeSend');
                  jqXHR.setRequestHeader('If-Match', '*');
              },
  </code></pre>
  
  <p>But this function gets invoked before every request. I need this header to be set only on a 'PUT' request but not on any other. My 'GET' request actually fails with this header.</p>
  
  <p>How do I check if it is a PUT or a GET inside the loadBeforeSend ? or is there another way to do this?</p>
  
  <p>Thanks in advance!</p>