To print all HTTP response header in jQuery,
you can use the following code:
$(document).ready(function () {
$.ajax({
url: "http://localhost:8080/greeting"
}).then(function (data, status, request) {
console.log(request.getAllResponseHeaders());
});
});
Note that it does NOT support CORS headers.
Reference:
http://bugs.jquery.com/ticket/10338
No comments:
Post a Comment