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?