Using cURL to create AJAX request


set header: ‘X-Requested-With: XMLHttpRequest’
curl -H 'X-Requested-With: XMLHttpRequest' http://localhost/api/blah

Leave a comment

Your email address will not be published. Required fields are marked *