You do need to register a OptString for "TARGETURI" though. Because when you use target_uri.path, that's the source of the input. Please read:
https://github.com/rapid7/metasploit-framework/wiki/How-to-Send-an-HTTP-Request-Using-HTTPClient