[{"data":1,"prerenderedAt":54},["ShallowReactive",2],{"/2025/10/21-model-binding-issue-asp.net-core-in-ubuntu-using-postman":3},{"id":4,"title":5,"body":6,"date":45,"description":42,"extension":46,"meta":47,"navigation":48,"path":49,"robots":50,"seo":51,"stem":52,"__hash__":53},"posts/2025/10/21 model-binding-issue-ASP.NET-Core-in-ubuntu-using-postman.md","21 Model Binding Issue ASPNET Core In Ubuntu Using Postman",{"type":7,"value":8,"toc":41},"minimark",[9,18,25,28,31,33,36,38],[10,11,13],"post-title",{":date":12},"date",[14,15,17],"h1",{"id":16},"model-binding-issue-aspnet-core-in-ubuntu-using-postman","Model Binding Issue ASP.NET Core in Ubuntu using Postman",[19,20,21],"notes",{},[22,23,24],"p",{},"This is a repost from my old blog. First posted in 4/5/2019.",[26,27],"br",{},[22,29,30],{},"I spent a fair amount of time trying to troubleshoot my ASP.NET Core web server in Ubuntu. The issue starts when I noticed a failed model binding in Ubuntu using HTTP PUT method when it works locally on my Window machine. I also found out that it binds properly when I used HTTPS compared to HTTP.",[26,32],{},[22,34,35],{},"Looking into the server, I have configured Nginx as reverse proxy server which send a 301 Redirect to HTTPS when the request is made using HTTP. I can't find any issue on the web application itself, Nginx, so I decided to check Postman which I used to generate the request.",[26,37],{},[22,39,40],{},"I found out that by default, Postman always follows redirect. There is nothing wrong with that, except seems like the data is lost during redirect. Eventually I found out that, 301 is meant to be used with GET and thus any POST/PUT data will be scrapped during redirect. Hence, it is the correct logic all along.",{"title":42,"searchDepth":43,"depth":43,"links":44},"",2,[],"2025-10-21T00:00:00.000Z","md",{},true,"/2025/10/21-model-binding-issue-asp.net-core-in-ubuntu-using-postman",null,{"title":5,"description":42},"2025/10/21 model-binding-issue-ASP.NET-Core-in-ubuntu-using-postman","g8dSCTwlx1vwogZ7jXCXtxoNYdyjYpj2RDQQCvHLzgM",1785167452806]