Joshua Wise
Joshua Wise

Reputation: 663

Content-Transfer-Encoding vs Transfer-Encoding vs Content-Encoding

I understand that Transfer-Encoding and Content-Encoding are similar except that one is "hop-by-hop" header, and the other is an "end-to-end" header. However, I'm confused at how Content-Transfer-Encoding relates to these. This header appears here, but not in the HTTP 1.1 spec, which leads me to believe it shouldn't be used anymore, but I don't see a replacement for it in the 1.1 spec. For example, what if I need to base64 encode the body content?

Also, assuming all three of these headers are given, what is the correct order of decoding to get the actual content as described by Content-Type?

Upvotes: 1

Views: 1184

Answers (1)

Julian Reschke
Julian Reschke

Reputation: 42075

There is no Content-Transfer-Encoding in HTTP, nor is there any need for it. In particular, there's no reason to base64-encode a message body.

Upvotes: 1

Related Questions