Fixed http and spruced up attachments

http.php was missing necessary options for sending file data. php_curl
is not fun.