Transfer Attachment in http request

I would like to transfer a file with attachment in http request. I don’t know it’s possible to do this.