JasonDavis
JasonDavis

Reputation: 48933

How to debug AJAX POST request that redirects?

I am trying to debug a problem with SugarCRM.

When I click the next page button to browse the records of one of my extensions, it shows a blank page with this error message Bad data passed in; Return to Home

My searches online has resulted in now help for this issue so far as it seems many things can cause the issue.

So I would now like to somehow monitor the data that is being sent when I click that button. It appears to use AJAX to send some data but it immediately redirects so I am not able to see what data was sent.

Can someone tell me how to monitor and see the posted data before a redirect happens?

Upvotes: 3

Views: 503

Answers (1)

kEpEx
kEpEx

Reputation: 839

You can use Firebug extension with Firefox and activate the Network tab to see every network call.

The tricky part is to activate the button "Persists" in order to prevent to clean the log when a redirection or a user action changes the URL.

Example Persists button location

Upvotes: 1

Related Questions