Reputation: 3281
Currently, I am working on Asp.net 3.5 project and I am calling a Webservice by ajax call
$.ajax({
type: "Post",
contentType: "application/json; charset=utf-8",
url: "WebService/DefaultPage.asmx/GetTours",
dataType: "json",
success: function (data) {
Home.ReadTours(data);
},
error: function (result) {
$('.load-3').hide();
}
});
working fine.
but when I change the URL to lowercase.
url: "webservice/defaultpage.asmx/gettours",
its not working.
Is this Jquery Ajax URL is case sensitive and is there any by I can ignore case sensitiveness of ajax URL.
Upvotes: 1
Views: 2657
Reputation: 707916
Your server fielding the ajax request will need to be configured to NOT be case sensitive. There is nothing you can do in the client to change case sensitivity of a server (other than providing the case that the server expects).
Upvotes: 4