How To Access "Form Data" In Response Header Received From A Redirect

I have requirement where I have to redirect to website 1 with a return url to my site. After the processing, website 1 will return the control to return url via a redirect with the response in the Form Data of headers. Here is the image of of the redirected response...

This is sent as a form data in the html. My question is how do I access error_code using JavaScript or jQuery

Answers


If server sends a redirect status code (301/ 302), then there's no standard way to access the intermediate-headers returned.

When a browser sees a 302 it automatically applies the redirect. Mostly in your case, you would see the header in firebug because the browser got it, but you would not see it in ajax, because the browser did not pass it.


Need Your Help

opengl 3d texture issue

c++ opengl

I'm trying to use a 3d texture in opengl to implement volume rendering. Each voxel has an rgba colour value and is currently rendered as a screen facing quad.(for testing purposes). I just can't se...