Multipart Form Data
Use the>>>multipart block to send multipart/form-data requests. This is the standard format for file uploads and mixed form submissions.
Content-Type: multipart/form-data header is set automatically. Do not set it manually.
Field Syntax
Each line in a>>>multipart block is either a field or a file:
Naming a File Field
Servers read an uploaded file by its form field name. Put the name before the@ path; without one the field is called file:
filename of the part) is the base name of the path. A file that does not exist fails the request with an error naming the path; nothing is sent.
Multiple Fields and Files
You can include any combination of fields and files:Variable Interpolation
Variables are resolved in both field values and file paths:File paths in
file @ directives are relative to the .http file location.GraphQL
Use the>>>graphql block to write GraphQL queries and mutations. Optionally add a >>>variables block for query variables.
Basic Query
Query with Variables
Use the>>>variables block to pass variables to your GraphQL query:
Mutations
Variables with Interpolation
hitspec variables work inside the>>>variables block: