This is a major no-no. If you don't use Metasploit's http library for making the request, you'll be bypassing routes set up by the user.