File:  [parser3project] / parser3 / tests / results / 451-curl.processed
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sun Sep 6 23:12:17 2026 UTC (8 weeks, 1 day ago) by moko
Branches: MAIN
CVS tags: HEAD
test for curl and file::load accept a hash or array as a form field value (related to feature #1296)

Content-Type: text/html
Content-Length: 2832

1. <h2>curl</h2>
--------------------------boundary-value
Content-Disposition: form-data; name="f1_str"

plain field
--------------------------boundary-value
Content-Disposition: form-data; name="f2_doc"; filename="a.txt"
Content-Type: application/octet-stream

aaa file A
--------------------------boundary-value
Content-Disposition: form-data; name="f3_tbl"

row-1
--------------------------boundary-value
Content-Disposition: form-data; name="f3_tbl"

row-2
--------------------------boundary-value
Content-Disposition: form-data; name="f4_files"; filename="a.txt"
Content-Type: application/octet-stream

aaa file A
--------------------------boundary-value
Content-Disposition: form-data; name="f4_files"; filename="b.txt"
Content-Type: application/octet-stream

bbb file B
--------------------------boundary-value
Content-Disposition: form-data; name="f5_pair"

one
--------------------------boundary-value
Content-Disposition: form-data; name="f5_pair"

two
--------------------------boundary-value
Content-Disposition: form-data; name="f6_mixed"; filename="b.txt"
Content-Type: application/octet-stream

bbb file B
--------------------------boundary-value
Content-Disposition: form-data; name="f6_mixed"

mixed string
--------------------------boundary-value--

<hr />
2. <h2>file</h2>
------------boundary-value
Content-Disposition: form-data; name="f1_str"

plain field
------------boundary-value
Content-Disposition: form-data; name="f2_doc"; filename="a.txt"
Content-Type: application/octet-stream

aaa file A
------------boundary-value
Content-Disposition: form-data; name="f3_tbl"

row-1
------------boundary-value
Content-Disposition: form-data; name="f3_tbl"

row-2
------------boundary-value
Content-Disposition: form-data; name="f4_files"; filename="a.txt"
Content-Type: application/octet-stream

aaa file A
------------boundary-value
Content-Disposition: form-data; name="f4_files"; filename="b.txt"
Content-Type: application/octet-stream

bbb file B
------------boundary-value
Content-Disposition: form-data; name="f5_pair"

one
------------boundary-value
Content-Disposition: form-data; name="f5_pair"

two
------------boundary-value
Content-Disposition: form-data; name="f6_mixed"; filename="b.txt"
Content-Type: application/octet-stream

bbb file B
------------boundary-value
Content-Disposition: form-data; name="f6_mixed"

mixed string
------------boundary-value--
<hr />
3. exceptions:
3a: curl / bad element: Exception: is table, multiple values of form field 'field' must be strings or files
3b: curl / unsupported: Exception: is bool, form field value can be string, table, file, hash or array
3a: file / bad element: Exception: is table, multiple values of form field 'field' must be strings or files
3b: file / unsupported: Exception: is bool, form field value can be string, table, file, hash or array

E-mail: