Skip to main content

File part with explicit contentType

POST 

/anything/file-with-content-type

Verifies that a binary file part declared with encoding.contentType: text/plain is sent with Content-Type: text/plain rather than application/octet-stream.

Upload any file — check the generated code snippet and (via HTTPBin) the actual request to confirm the part Content-Type is text/plain.

Schema:

encoding:
file:
contentType: text/plain

Request

Responses

Request echoed by HTTPBin — inspect files for Content-Type