Search code examples
httphttp-headerscontent-typepickle

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


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.


Solution

  • You should use application/octet-stream.