This is an example of using the curl command to request a CakePHP URL and post form data to it. It uses xmllint to format the output and highlight (under MacOS) to colorize the output

<br />
#!/bin/sh<br />
# save as curlIt.sh<br />
curl -s \<br />
-d &quot;data[Label][start_date][day]=25&amp;data[Label][start_date][month]=06&amp;data[Label][start_date][year]=2018&quot; \<br />
-H &quot;Accept: text/xml&quot; http://servername/path/to/CakePHP/Form |\<br />
xmllint --format - |\<br />
highlight --syntax=xml --out-format=ansi