Create basic Web API template project without auth.
Make sure ValuesController has following action:
// PUT api/values/5
public void Put(int id, [FromBody]string value)
{
}
Deploy the application to azure website.
Repeat sending following requests:
PUT http://webstacktest03.azurewebsites.net/api/Values/1 HTTP/1.1
Content-Length: 6
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Host: webstacktest03.azurewebsites.net
="123"
You will observe:
1st request: works
2nd request: no response
3rd request: works
4th request: no response
The same scenario works fine in local IIS express.
Comments: I saw some user has same issue as mine: http://social.msdn.microsoft.com/Forums/windowsazure/en-US/74ab0c8b-576c-4ecc-9419-a044f6c385e9/web-api-with-204-http-response-is-not-responding?forum=windowsazuredevelopment
Make sure ValuesController has following action:
// PUT api/values/5
public void Put(int id, [FromBody]string value)
{
}
Deploy the application to azure website.
Repeat sending following requests:
PUT http://webstacktest03.azurewebsites.net/api/Values/1 HTTP/1.1
Content-Length: 6
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Host: webstacktest03.azurewebsites.net
="123"
You will observe:
1st request: works
2nd request: no response
3rd request: works
4th request: no response
The same scenario works fine in local IIS express.
Comments: I saw some user has same issue as mine: http://social.msdn.microsoft.com/Forums/windowsazure/en-US/74ab0c8b-576c-4ecc-9419-a044f6c385e9/web-api-with-204-http-response-is-not-responding?forum=windowsazuredevelopment