Backend & APIs
Send a binary HTTP request body: preserve bytes and set Content-Type
When an API accepts a file or binary payload, send the original bytes as the request body and use the media type required by the endpoint. application/octet-stream is a general choice for arbitrary bytes; when the format is known, such as JPEG or PDF, use its specific media type.