What is the 302 error code that jQuery AJAX is throwing?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 02:51:48

HTTP 302 is used for redirection. My guess is that there is some sort of server error and you are being redirected to an error page using 302. Check the server logs for errors.

DRaehal

See How to manage a redirect request after a jQuery Ajax call for an in-depth discussion about the 302 issue.

EDIT:

Here are some other stackoverflow posts on the subject.

How to get jQuery.ajax response status?

Catching 302 FOUND in JavaScript

HTTP redirect: 301 (permanent) vs. 302 (temporary)

HTTP code 302 represents a redirection. The server is trying to tell you to redirect somewhere.

http://en.wikipedia.org/wiki/HTTP_302

Does the server you accessing has Page Redirection facility? and that the page you access by Ajax was redirected to another page? If that is the case, you'd disable the redirection(at least ignore redirection for that page) then give it a try. PS: I think Ajax may not support url redirection.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!