Angular JS POST request not sending JSON data

If you are serializing your data object, it will not be a proper json object. Take what you have, and just wrap the data object in a JSON.stringify(). $http({ url: ‘/user_to_itsr’, method: “POST”, data: JSON.stringify({application:app, from:d1, to:d2}), headers: {‘Content-Type’: ‘application/json’} }).success(function (data, status, headers, config) { $scope.users = data.users; // assign $scope.persons here as promise … Read more

Returning DataTables in WCF/.NET

For anyone having similar problems, I have solved my issue. It was several-fold. As Darren suggested and Paul backed up, the Max..Size properties in the configuration needed to be enlarged. The SvcTraceViewer utility helped in determining this, but it still does not always give the most helpful error messages. It also appears that when the … Read more

When is it appropriate to respond with a HTTP 412 error?

If you look at RFC 2616 you’ll see a number of request headers that can be used to apply conditions to a request: If-Match If-Modified-Since If-None-Match If-Range If-Unmodified-Since These headers contain ‘preconditions’, allowing the client to tell the server to only complete the request if certain conditions are met. For example, you use a PUT … Read more