[New-bugs-announce] [issue18013] cgi.FieldStorage does not parse W3C sample

Florent Xicluna report at bugs.python.org
Sun May 19 19:45:09 CEST 2013

New submission from Florent Xicluna:

Trying to parse the W3C sample, it fails in 3.3 (while it passes on 2.7).
http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4 (last example)

   Content-Type: multipart/form-data; boundary=AaB03x

   Content-Disposition: form-data; name="submit-name"

   Content-Disposition: form-data; name="files"
   Content-Type: multipart/mixed; boundary=BbC04y

   Content-Disposition: file; filename="file1.txt"
   Content-Type: text/plain

   ... contents of file1.txt ...
   Content-Disposition: file; filename="file2.gif"
   Content-Type: image/gif
   Content-Transfer-Encoding: binary

   ...contents of file2.gif...

(broken) test attached.

components: Library (Lib)
files: test_multipart_w3.diff
keywords: patch
messages: 189609
nosy: flox, orsenthil
priority: normal
severity: normal
status: open
title: cgi.FieldStorage does not parse W3C sample
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file30313/test_multipart_w3.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list