send_request_cgi() probably works better in this case.  Use the "vars_get" option.