This auxiliary module for Metasploit does a simple HTTP GET or POST and returns the result, be it a file and error – whatever!
Get it here: Metasploit Simple HTTP
Rename the file to .rb and install in the aux directory of your Metasploit installation.
If you need a PUT example, Carnal0wnage has a good module on his blog.