Please use vars_post to send POST variables. Here is the guidelines about how to use HTTPClient: https://github.com/rapid7/metasploit-framework/wiki/How-to-Send-an-HTTP-Request-Using-HTTPClient