How to send an ajax request with CURL curl --header "X-Requested-With: XMLHttpRequest" --data "param1=razvan&param2=value2" http://my.domain.com/request.php