How to get POST parameters from CGI scripts written in bash?
When using the POST method. The POST values will be the input to your CGI program. So in bash just use
read POST_STRING
POST_STRING then contains the POST values in the same format as QUERY_STRING holds the values for a GET request.