Please use the ```TARGETURI``` provided by ```Msf::Exploit::Remote::HttpClient``` instead of ```URI```. Guidelines about how to correctly use ```Msf::Exploit::Remote::HttpClient``` can be found here: https://github.com/rapid7/metasploit-framework/wiki/How-to-Send-an-HTTP-Request-Using-HTTPClient