How can I debug a page that receives Ajax Post Request? For the page that receives a GET request, I will simply enter the URL manually, like: In this page, I have to make sure that How can I get a post request with that page? You Chrome Developer Tools, in the Networks tab, when you right-click on the XHR request entry, "Copy as curl" is the option, it gives you the You can also inspect the inspector's reaction, if you can not add the debug information to the feedback, then you can add it to custom HTTP header (
http: //localhost/.../myAjaxPage.php? ParamName1 = paramValue1 and paramName2 = paramValue2
var_dumps or
echo is required This should work.
curl to make a post request from the command line
curl command which is POST , Replaces the request with all the headers, cookies, etc.
& lt ;? php header (" X-my-debug: $ stuff "), you must add
ob_start () at the beginning of the script)
No comments:
Post a Comment