Archive for July, 2009

Reading HTTP POST data using BASH

I recently needed to read the HTTP POST data using a BASH cgi script. When using BASH this way most of the HTTP variables are set as environment variables, and can be accessed simply. The exception is the HTTP POST data, this goes to the stdin stream. There were some examples of reading stdin like: […]