title: asp.net webservice handling gzip compressed request
body: <p>I have an asp.net .asmx webservice written to handle requests from a third party tool.  The third party tool makes an http POST request to the webservice to get user information. I'm using IIS7</p>
  
  <p>Running Fiddler with "Remove All Encodings" checked, I can see the webservice call and and everything functions properly.  If I uncheck "Remove All Encodings", the webservice call fails with a 400 Bad Request.  The difference I see is that the header "Content-Encoding: gzip" is being removed by Fiddler and the content is being decompressed.</p>
  
  <p>So, when the Content-Encoding header is removed and the content is decompressed, my webservice functions perfectly.  When the header is present and the content is compressed, the webservice fails.</p>
  
  <p>How can I either:</p>
  
  <ol>
  <li>Configure my webservice to tell the client that it won't accept compressed requests (and hope that the third party tool respects that)</li>
  <li>Decompress the content early in the asp.net handling</li>
  <li>Modify my webservice to work with compressed data</li>
  </ol>
  
  <p><strong>Update</strong>: To be clear, I don't need to configure gzip encoding in the Response, I need to deal with a Request TO my webservice that is gzip encoded.</p>
  
  <p><strong>Update 2</strong>: The third-party tool is the Salesforce.com Outlook plugin.  So, I don't have access to modify it and it is used by many other companies without trouble.  It's got to be something I'm doing (or not doing)</p>
  
  <p><strong>Update 3</strong>: I found one post <a href="http://forums.iis.net/t/1148625.aspx" rel="noreferrer">here</a> that says that IIS does not support incoming POST requests with compressed data, it only supports compressed Responses.  Can this still be true?</p>