Instead of doing this way, the module should use send_request_cgi() instad and specify the 'vars_get' key.