back to <FORM ENCTYPE="...">

What is Actually Sent with ENCTYPE

The browser encodes form data very differently for application/x-www-form-urlencoded and "multipart/form-data".

application/x-www-form-urlencoded

POST /cgi-bin/maillist.cgi HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Referer: http://www.idocs.com/tags/foo.html
Accept-Language: en
Content-Type: application/x-www-form-urlencoded
UA-pixels: 640x480
UA-color: color8
UA-OS: Windows 95
UA-CPU: x86
User-Agent: Mozilla/2.0 (compatible; MSIE 3.0; Windows 95)
Host: 10.10.10.20
Content-Length: 45
Pragma: No-Cache
Connection: Keep-Alive
realname=Steve+Johnson&email=steevo@idocs.com

multipart/form-data

POST /cgi-bin/maillist.cgi HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Referer: http://www.idocs.com/tags/foo.html
Accept-Language: en
Content-type: multipart/form-data; boundary=---------------------------7cd1d6371ec
UA-pixels: 640x480
UA-color: color8
UA-OS: Windows 95
UA-CPU: x86
User-Agent: Mozilla/2.0 (compatible; MSIE 3.0; Windows 95)
Host: 10.10.10.20
Content-Length: 25852
Pragma: No-Cache
Connection: Keep-Alive
-----------------------------7cd1d6371ec
Content-Disposition: form-data; name="realname"
Steve Johnson
-----------------------------7cd1d6371ec
Content-Disposition: form-data; name="email"
steevo@idocs.com
-----------------------------7cd1d6371ec
Content-Disposition: form-data; name="MyPicture"; filename="C:\My Documents\Java\misc\pics\steve.jpg"
Content-Type: image/jpeg
ÿØÿà



About the Author
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.