Multipart/form-data over the wire example

This is just for my personal reference.

C: POST /the_url HTTP/1.1
   User-Agent: curl/7.11.1 (i686-pc-cygwin) libcurl/7.11.1 OpenSSL
   Content-Length: 38421
   Expect: 100-continue
   Content-Type: multipart/form-data; boundary=--------------------

S: HTTP/1.1 100 Continue
C: ------------------------------
   Content-Disposition: form-data; name="a"

   Content-Disposition: form-data; name="b"

   Content-Disposition: form-data; name="c"; filename="mydocument.doc"
   Content-Type: application/octet-stream


Also see Mime-RPC over the wire examples (HTTP with multipart/form-data)

One thought on “Multipart/form-data over the wire example

Comments are closed.