Shammer's Philosophy

My private adversaria

HTTP Multipart Request

The most easiest way to test multipart form-data is defining enctype="multipart/form-data" as form attribute. Sample is below.

<form method="post" name="f" action="cgi-bin/sample.cgi" onsubmit="return sendData(this)" enctype="multipart/form-data">
  <input type="text" name="field1" value=""></input>
  <input type="submit" value="Send"></input>
</form>

The enctype attribute default value is url-encoded, but this seems to be a little bit old. Creating html included this form helps about multipart form-data client.