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
   Host: www.example.com
   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"

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

   value_for_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)