Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Multipart form data
임유빈 ( purewell@purewell.biz )
2012.01.12
<form>
<form action="ex.cgi" method="POST"
enctype="multipart/form-data">
<input type="text" name="key"
value="123456" /> <br />
...
123456|
submit
POST ex.cgi HTTP/1.1
Content-Type: multipart/form-data;
boundary=BOUNDARY
Content-Length: 80
--BOUNDARY
Content-Dispositio...
POST ex.cgi HTTP/1.1
Content-Type: multipart/form-data;
boundary=BOUNDARY
Content-Length: 80
--BOUNDARY
Content-Dispositio...
POST ex.cgi HTTP/1.1
Content-Type: multipart/form-data;
boundary=BOUNDARY
Content-Length: 80
--BOUNDARY
Content-Dispositio...
<form action="ex.cgi" method="POST"
enctype="multipart/form-data">
<input type="text" name="key"
value="123456" /> <br />
...
123456|
my.jpg
submit
browse
POST /ex.cgi HTTP/1.1
Content-Type: multipart/form-data; boundary=BOUNDARY
Content-Length: 10000
--BOUNDARY
Content-Dispos...
RTFM
RFC-1867
Upcoming SlideShare
Loading in …5
×

Multipart form data

414 views

Published on

Multipart form data

Published in: Internet
  • Be the first to comment

Multipart form data

  1. 1. Multipart form data 임유빈 ( purewell@purewell.biz ) 2012.01.12
  2. 2. <form>
  3. 3. <form action="ex.cgi" method="POST" enctype="multipart/form-data"> <input type="text" name="key" value="123456" /> <br /> <input type="submit" /> </form>
  4. 4. 123456| submit
  5. 5. POST ex.cgi HTTP/1.1 Content-Type: multipart/form-data; boundary=BOUNDARY Content-Length: 80 --BOUNDARY Content-Disposition: form-data; name="key" 123456 --BOUNDARY-- Header Empty Line Body Method
  6. 6. POST ex.cgi HTTP/1.1 Content-Type: multipart/form-data; boundary=BOUNDARY Content-Length: 80 --BOUNDARY Content-Disposition: form-data; name="key" 123456 --BOUNDARY--
  7. 7. POST ex.cgi HTTP/1.1 Content-Type: multipart/form-data; boundary=BOUNDARY Content-Length: 80 --BOUNDARY Content-Disposition: form-data; name="key" 123456 --BOUNDARY--
  8. 8. <form action="ex.cgi" method="POST" enctype="multipart/form-data"> <input type="text" name="key" value="123456" /> <br /> <input type="file" name="f" /> <br /> <input type="submit" /> </form>
  9. 9. 123456| my.jpg submit browse
  10. 10. POST /ex.cgi HTTP/1.1 Content-Type: multipart/form-data; boundary=BOUNDARY Content-Length: 10000 --BOUNDARY Content-Disposition: form-data; name="key" 123456 --BOUNDARY Content-Disposition: form-data; name="f"; filename="my.jpg" Content-Type: image/pjpeg ......JFIF......(CRLF end) --BOUNDARY-- CRLF
  11. 11. RTFM RFC-1867

×