Last active
November 19, 2015 14:45
-
-
Save lefloh/3db5f7519f583ecedfc2 to your computer and use it in GitHub Desktop.
HTTP multipart POST
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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