I have written code for file upload and download while using HttpWebRequest and HttpWebResponse classes in C# using the Apache HTTP server v2.2. In code, I'm using 'request.method = "PUT"', so I wish to configure my httpconfig file to aid the PUT method. I write the PUT method script as

<Location "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/output">
    <Dav On
    <LimitExcept GET HEAD OPTIONS PUT>
    <Allow from all
    </LimitExcept>
</Location>

That isn't working. How can have great results?

Try setting up it like below. You may need a proper road to this programOrtrainer which will process PUT demands.

<Location "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/output">
Dav On
<LimitExcept GET HEAD OPTIONS PUT>
<Allow from all>
</LimitExcept>
Script PUT {path to PUT handler}
</Location>