Skip to content

Instantly share code, notes, and snippets.

@mlc
Created June 21, 2014 05:25
Show Gist options
  • Save mlc/caf2ca1bd1261b908f14 to your computer and use it in GitHub Desktop.
Save mlc/caf2ca1bd1261b908f14 to your computer and use it in GitHub Desktop.
testing form field escaping in multipart/form-data forms
<!DOCTYPE html>
<html>
<head>
<title>multipart test</title>
<meta charset='utf-8'>
</head>
<body>
<h1>multipart test</h1>
<form action='/test' enctype='multipart/form-data' method='post'>
<p>
<input name='foo"bar"' value='foo"bar"'>
<input name='foo&quot;bar2&quot;' value='foo&quot;bar2&quot;'/>
<input name='1[]' value='1[]'>
<input name='something with a space' value='something with a space'>
<input name='ûñíçøđė' value='ûñíçøđė'>
<input name='whatever%22' value='whatever%22'>
<input name='a+b' value='a+b'>
</p>
<p>
<input type='submit'>
</p>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment