What is the HTTP "content-type" to use for a blob of bytes?

Chris Dutrow picture Chris Dutrow · Nov 4, 2012 · Viewed 58.4k times · Source

What is the HTTP "content-type" to use when returning a blob of bytes in response to a client's GET request?

In this case, the information payload is an object serialized using Python's Pickle library.

Answer

SLaks picture SLaks · Nov 5, 2012

You should use application/octet-stream.