what is the difference between such a record

$.ajax({ url:"ajax", type:"post", contentType:"application/text", data:city_number, success: 

and such a record

 $.ajax({ url:"ajax", type:"post", contentType:"text", data:city_number, success: 

THOSE. how to understand this line

 contentType:"application/text", 

AND

 contentType:"text", 

    1 answer 1

    The whole point is what kind of service information, using the contentType header : you report in a request to the server. Each server strives to handle all possible options, based on the documentation.

    1. Properly Configuring Server MIME Types
    2. MIME types

    JQUERY ajax question about options of this method