Skip to content

Instantly share code, notes, and snippets.

Last active Mar 25, 2021
What would you like to do?
API Blueprint multipart request example. Raw HTTP source:
# POST /path/to/script.php
+ Request (multipart/form-data, boundary=AaB03x)
+ Headers
Content-Length: $requestlen
+ Body
content-disposition: form-data; name="field1"
content-disposition: form-data; name="field2"
content-disposition: form-data; name="userfile"; filename="$filename"
Content-Type: $mimetype
Content-Transfer-Encoding: binary
+ Response 201 (text/plain)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment