Showing posts with label content-type. Show all posts
Showing posts with label content-type. Show all posts

Tuesday, April 17, 2012

Setting the content-type of requests performed by jQuery jqGrid


I am using the latest version of jqGrid : 3.6.4



This seems like a simple problem (or at least it did before I spent a few hours on it):

Jquery - How to make $.post() use contentType=application/json?


I've noticed that when using $.post() in jquery that the default contentType is application/x-www-form-urlencoded - when my asp.net mvc code needs to have contentType=application/json