4

I thought I knew this already but now I'm not sure: Is all content sent over http always encoded to character data? ie, if my content type is a binary file type, is it always converted to binhex, or is it possible to send "actual" binary data across the wire?

Brady Moritz
  • 8,624
  • 8
  • 66
  • 100

2 Answers2

4

In HTTP there is no content transfer encoding (e.g. base64) done, so binary data is sent just binary, byte-by-byte.

AndreKR
  • 32,613
  • 18
  • 106
  • 168
2

Character data is just binary data with special meaning to humans :p
The actual body of the HTTP request may be encoded and/or compressed, and this is specified in the headers.

Niet the Dark Absol
  • 320,036
  • 81
  • 464
  • 592