Ticket #2639 (closed enhancement: wontfix)
Make XMLHttpRequest or headersAvailable to "success" callback of post
|Reported by:||Shaft0rz||Owned by:|
I would like to be able to check the Response headers of a $.post() call in the success callback. In my case, the response might either be text, or json, and I'd like to vary my behavior based on the Content-Type. I believe I can work around it with the ajaxSuccess event, but I think a more direct solution would be helpful.