Tag Archives: Ajax

How to fake ajax requests with cURL

If you need to fake ajax requests you can do this in the console (on Mac).

curl -H 'X-Requested-With: XMLHttpRequest' -d "my=var" http://localhost/en/my/page