Initially, I was having some trouble getting a Status 200 OK response from a DELETE request back from my web server running on IIS 7.5

It would return a 405 "Method not allowed error" message, but after some troubleshooting I was able to configure the IIS web server to return the Status 200 OK message. To do this, I ensured that the WebDAV module was uninstalled. I also added the DELETE verb to the request filtering area of my website within the IIS Manager and set it to Allow. Finally, within the "Handler Mappings" area of the site in the IIS Manager I added a new mapping with the title DELETEVerbHandler, and used the following settings:

Request Path: *
Module: ProtocolSupportModule
Executable (optional): <blank>
Name: DELETEVerbHandler

After I made those changes, I was able to make a request with the DELETE verb and I received the 200 OK response. The request is being made via XHR from some jQuery code. When I check the console after making the request, I see the Status 200 OK message, but there is absolutely no data in the "Response" tab in the console in the Chrome console. The script that gets called (written in PHP) is echo'ing JSON encoded data, but I am seeing nothing in response. Even if I tear down the script to simply echo something with the following, it will not show me the response:

json_encode(Array('msg' => 'DELETE httpd verb worked!'));

Might anybody out there know why I am not seeing a response of any kind even though I am getting the Status 200 OK message?

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.