Skip to content

Instantly share code, notes, and snippets.

@lefloh
Last active November 19, 2015 14:45
Show Gist options
  • Save lefloh/3db5f7519f583ecedfc2 to your computer and use it in GitHub Desktop.
Save lefloh/3db5f7519f583ecedfc2 to your computer and use it in GitHub Desktop.
HTTP multipart POST
POST /some-resource HTTP/1.1
Content-Type: multipart/form-data; boundary=AaB03x
--AaB03x
Content-Disposition: form-data; name="file1"; filename="file1.txt"
Content-Type: text/plain; charset=utf-8
... content of file1.txt ...
--AaB03x--
Content-Disposition: form-data; name="file2"; filename="file2.jpg"
Content-Type: image/jpeg
... content of file2.jpg ...
--AaB03x--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment