Skip to content

Instantly share code, notes, and snippets.

Last active March 25, 2021 03:44
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save zdne/6267785 to your computer and use it in GitHub Desktop.
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