in reply to My parsing not working

It doesn't work because you are reading the parameters for a POST but are using a GET URL. For a GET URL, The server passes the request string (everything after the question mark) in the QUERY_STRING environment variable. For a POST, the parameters are passed in the same format on stdin but only with Content-Type application/x-url-encoded.