Archive for the ‘Protocols’ Category

HTTP headers for binary file downloads

Thursday, November 29th, 2007

In case you need to send files from a webserver, use these HTTP headers:

Content-Type:application/octet-stream
Content-Disposition:attachment;filename=filename
Content-Length:100

Of course, you need to set your own content type, filename and file length. 🙂