public function sendAjaxRequest($method, $uri, $params = [])
    {
        $this->clientRequest($method, $uri, $params, [], ['HTTP_X_REQUESTED_WITH' => 'XMLHttpRequest'], null, false);
    }
public function sendAjaxRequest($method, $uri, $params = [])
    {
        $this->clientRequest($method, $uri, $params, [], ['HTTP_X_REQUESTED_WITH' => 'XMLHttpRequest'], null, false);
    }
public function sendAjaxRequest ( $ method , $ uri , $ params = [ ] ) { $ this -> clientRequest ( $ method , $ uri , $ params , [ ] , [ 'HTTP_X_REQUESTED_WITH' => 'XMLHttpRequest' ] , null , false ) ; }
If your page triggers an ajax request, you can perform it manually.
This action sends an ajax request with specified method and params.

Example:

You need to perform an ajax request specifying the HTTP method.

``` php
<?php
$I->sendAjaxRequest('PUT', '/posts/7', array('title' => 'new title'));

```

@param $method
@param $uri
@param $params
If your page triggers an ajax request you can perform it manually . This action sends an ajax request with specified method and params .