For certain characters when putting in query string parameters they need to be URL encoded or they will cause problem to the web service.
I faced this problem with the # character, encoding it and use %23 instead solved the problem.
Bruce Ng's software development blog
An archive of solutions of programming problems I have faced in my career
For certain characters when putting in query string parameters they need to be URL encoded or they will cause problem to the web service.
I faced this problem with the # character, encoding it and use %23 instead solved the problem.
Today while testing the Ext JS application I was writing on various browsers, something strange happened. The app works on IE and Chrome, while on Firefox it breaks.
It turns out if not configured correctly WebAPI will return data depending on the Accept HTTP header sent by browsers, and different browsers sent different HTTP Accept header.
More details in the SO answer: http://stackoverflow.com/a/31934984
Firefox prefers XML, so Web API try to serialize data in XML format to return to Firefox.
IE and Chrome doesn’t prefer one over other, so Web API chooses Json.
I solved this issue in Firefox by configuring the web api to always return JSON by adding the following line to WebApiConfig.cs
config.Formatters.JsonFormatter.SupportedMediaTypes.Add(new MediaTypeHeaderValue(“text/html”));
The default behaviour of Ext JS proxy ajax writer seems to be to always use POST. Whenever trying to create/update/delete a record, a JSON object will be sent to the server in the request payload through POST.
It might be possible to configure the proxy and writer to use other HTTP methods like PUT and DELETE, but I haven’t seen any documentation on this yet.
The Id field is always included. So there are 3 cases
If the server is written in ASP.NET Web API, it’s important to read the request body and process it manually instead of using a parameter in the method and let the framework do the deserialization automatically, because then it will not be possible to count the number of properties the object original has, the deserialized object has all properties with default values for missing ones.
Web API 2 runs on .NET 4.5 and above. That’s the difference.
And this article: https://sharepointgotchas.wordpress.com/2014/11/18/using-rest-to-query-data-by-filtering-on-taxonomy-field/
The filtering works using CAML query.