I want to use jQuery to GET a URL and explicitly check if it responded with a 302 redirect, but not follow the redirect.
jQuery的$.ajax
似乎总是遵循重定向.如何防止这种情况发生,并在不遵循重定向的情况下查看重定向?
There are various questions with titles like "jquery ajax redirect" but they all appear to involve accomplishing some other goal, rather than just directly checking the status that a server gives.