Please use the TARGETURI option provided by the Msf::Exploit::Remote::HttpClient mixin