matugm/metasploit-framework — comment on commit 0e4b78fa0acf0cbef9d92443dbc6102001c48763
File: lib/rex/proto/http/client.rb line 673
By matugm:

I could do this (see code below), but it will only work with burp set to support invisible, I think this is because data is just sent without negotiating the ssl session first and for this it would be better to just use CONNECT

```
if (self.ssl)
prefix << "https://#{hostname}:#{port}"
else
prefix << "http://#{hostname}:#{port}"
end
```