There is a search page in a form http://site.com/search.php and it sends a search query via POST request. I want to fetch this request via curl command line tool to inspect a POST request.
The HTML form looks like this:
<form action="search.php" method="POST">
<input type="text" name="search" size=20><br>
SZ<input type="checkbox" checked name="sz">
NZ<input type="checkbox" checked name="nz">
<input type="submit" name="search_term" value="search" >
</form>
How should my curl command look like?