Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Issue: Web API returns 204 No Content doesn't work on Windows Azure Website [1657]

$
0
0
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 could repro this issue stably in 2 azure accounts but cannot repro in my personal account.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>