Skip to content

Instantly share code, notes, and snippets.

@adiroiban
Last active January 2, 2016 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adiroiban/8260720 to your computer and use it in GitHub Desktop.
Save adiroiban/8260720 to your computer and use it in GitHub Desktop.
Multi Part POST format
POST /SERVER_UPLOAD_URL HTTP/1.1
Content-Length: 1325
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryePkpFF7tjBAqx29L
------WebKitFormBoundaryePkpFF7tjBAqx29L
Content-Disposition: form-data; name="MAX_FILE_SIZE"
100000
------WebKitFormBoundaryePkpFF7tjBAqx29L
Content-Disposition: form-data; name="directory"
/path/to/server/destination/directory
------WebKitFormBoundaryePkpFF7tjBAqx29L
Content-Disposition: form-data; name="uploadedfile"; filename="hello.txt"
Content-Type: application/x-object
<file data>
------WebKitFormBoundaryePkpFF7tjBAqx29L--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment