How to enable post method on Server 2003 IIS 6? HTTP Error 405

iis-6windows-server-2003

I'm programming an Android application that read an XML file that sits on my server.
I'm using POST method in order to simply get the content of the XML (or any other file for that matter) using simple POST and RESPONSE methods.

// java code
HttpPost httpPost = new HttpPost(XML_FILE);
HttpResponse httpResponse = httpClient.execute(httpPost);
HttpEntity httpEntity = httpResponse.getEntity();

it works fine on one of my linux servers but when I tried on my Windows 2003 IIS 6 server I get a

HTTP Error 405 – The HTTP verb used to access this page is not
allowed.
Internet Information Services (IIS)

I tried to add

<protocols>
      <add name="HttpGet"/>
      <add name="HttpPost"/>
</protocols>

to my web.config file but the results are the same.

I think the problem is that POST methods are disabled by defualt by I cant figure out how to enable them. do you think thats really is my problem? if so, how to I enable it?

Best Answer

Generally this means that you are trying to POST to a page that only has a static handler (like a .html file).

You need to ensure that your ISAPI plugin for the language you're posting to (.net or php or whatever) needs to be set up correctly and enabled.