On my Windows Server 2012 R2 IIS 8.5, I've put a simple script for testing purposes and jQuery POST is not working with text file. It works with php though.
Example:
/* parse.js */
$(document).ready(function(){
$.post("test.php", function( data ){
alert(data);
});
$.post("test.txt", function( data ){
alert(data);
});
});
When page is loaded, test.php shows in alert box, but test.txt doesn't load an alert box. Does anyone have idea where is the problem?