REST- Cache as the server and the client, problem with PUT method , Length required error
Trying to work with REST protocol, using IIS 8, both client and server are Cache servers,
I have the following problem-
When I send a PUT command, I get the following error:
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<hr><p>HTTP Error 411. The request must be chunked or have a content length.</p>
Get , Post , Delete - work OK.
This problem does not happen if I use Apache, so it's a IIS problem , not a Cache problem.
Searching for solutions on google, this solution is popular-
To fix this error, add an explicit content length to your request before making the API call.
request.ContentLength = 0;
So - using %Net.HttpRequest , how do I accomplish this? ContentLength is a calculated property .
also, did you guys ran into a similar problem using REST ?