title: How to capture HTTP Put Requests using C#?
body: <p>I am trying to create an HTTP PUT request. I'm able to send successfully but how do I capture the data being send over ?</p>
  
  <p>When using HTTP Post, the URL being called is triggered, I can capture is using Request.Form, but for HTTP PUT, there seems to be no trigger at all.</p>
  
  <p>This is a sample code on how do I initiate :</p>
  
  <p>HTTP PUT:<br></p>
  
  <pre><code>var url = "http://localhost:81/index.aspx";&lt;br&gt;
    var client = new HttpClient();
  &lt;br&gt;var content = new StringContent("&lt;xml&gt;&lt;message&gt;TEST PUT&lt;/message&gt;&lt;/xml&gt;");
           &lt;br&gt;   var response = client.PutAsync(url, content).Result;
  </code></pre>
  
  <p>What do I do to capture the data in my index.aspx ?</p>
  
  <p><strong>UPDATE</strong><br>
  I created an HTTP handler to accept HTTP requests. Calling it <a href="http://localhost/RestService/employee" rel="nofollow">http://localhost/RestService/employee</a></p>
  
  <p>Then I use Fiddler to test POST,GET,DELETE and PUT. Three of the method works and invoke my service. But the PUT method, only returns http 200 from fiddler without invoking my service. What is so special with PUT that I need to configure? </p>
  
  <p>This is my code from RestService</p>
  
  <pre><code> public void ProcessRequest(HttpContext context)
  {
     LogMessage("Service invoked");
     LogMessage("Method used:" + context.Request.HttpMethod);
  }
  </code></pre>
  
  <p>Thanks for your future response.</p>