IIS 5 & IIS 6
HTTP POST to an IIS 6 Virtual Directory
Last post Sep 13, 2010 04:22 AM by IanD193
Sep 08, 2010 11:39 AM|IanD193|LINK
Hello all, just having an issue with IIS and HTTP POST Method. I'm sure someone will tell me what a berk I am being but more importanlty and with fingers crossed how to stop being a berk!
We're currently use a 3rd party application that uses the HTTP POST method to post XML files onto our web server.
I've set-up the virtual directory and using some ASP code have proven that I can indeed "POST" files into the same Virtual Directory successfully - I'm guessing that this is because there is a mapping that ALLOWS POST with the .ASP extension.
However when the 3rd party application performs it's POST, IIS responds with a HTTP 405 error. The application is configured to post directly to the VD "UploadedFiles", i.e.
https://www.mysite.com/UploadedFiles/ but the following error is being returned:
HTTP/1.1 405 Method Not Allowed.
Connection Length: 1564
Allow: OPTIONS, TRACE, GET, HEAD
Is this possible in IIS 6.0 to POST direct into a Virtual Directory?
Sep 13, 2010 03:54 AM|kctt|LINK
The "3rd party application" you are using is ASP.NET?
Virtual directory should behave the same as root directory.
Sep 13, 2010 04:01 AM|Leo Tang - MSFT|LINK
This question is better asked at the third party application forum. If the request was not mapped to any application extension, we can't do any configuration on IIS to allow the POST verb.
Sep 13, 2010 04:22 AM|IanD193|LINK
Thanks for your answer Leo, that indeed seems to be the issue. In the background I have since created an ASP page that handles the file POSTED by the application. I then cofigured this page as the Default Document for the VD. That seems to have resolved
the 405 error.