I have an ASP.net C# application that relies on the IsPostBack
property. The application is failing because GET requests are mysteriously being sent.
I'm monitoring requests & responses, as well as the Request.RequestType
property.
Outgoing requests are definintely POST requests, however, the Request.RequestType
property is consitently GET.
I've checked the IIS 6 accepted HTTP Verbs as suggested in this article. The POST verb is always allowed. I've also checked the Web.config file, and there are no Verb restrictions.
Anyone have any clue why IIS is changing POST requests to GET requests?
Thanks!
Update
- Wireshark monitoring on the server is showing that POST requests are being received as well as the proper request body.
- IIS logs are showing that POST requests are properly being received
Request.RequestType
Is still GET....
Update 2
I ended up solving the problem by re-installing all ASP.NET 4 packages on the web server.
The issue has surfaced again! This time, however, it is selective! Chrome, Firefox, and IE requests are being interpretted fine! When I run my load tests from JMeter POST is being interpretted as GET.
Does anyone have any clue what is going on? Does this have something to do with the requesting IP / agent? Does ASP.NET keep a record of IPs / agents?