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

One Thought on “How to fake ajax requests with cURL

  1. Thanks, this was exactly what I was looking for!

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Post Navigation