File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
sapi /
tests /
test007.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 5 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
1: --TEST--
2: Multipart Form POST Data, incorrect content length
3: --HEADERS--
4: return <<<END
5: Content-Type=multipart/form-data; boundary=---------------------------240723202011929
6: Content-Length=100
7: END;
8: --POST--
9: -----------------------------240723202011929
10: Content-Disposition: form-data; name="entry"
11:
12: entry box
13: -----------------------------240723202011929
14: Content-Disposition: form-data; name="password"
15:
16: password box
17: -----------------------------240723202011929
18: Content-Disposition: form-data; name="radio1"
19:
20: test 1
21: -----------------------------240723202011929
22: Content-Disposition: form-data; name="checkbox1"
23:
24: test 1
25: -----------------------------240723202011929
26: Content-Disposition: form-data; name="choices"
27:
28: Choice 1
29: -----------------------------240723202011929
30: Content-Disposition: form-data; name="choices"
31:
32: Choice 2
33: -----------------------------240723202011929
34: Content-Disposition: form-data; name="file"; filename="info.php"
35: Content-Type: application/octet-stream
36:
37: <?php
38: phpinfo();
39: ?>
40: -----------------------------240723202011929--
41:
42: --FILE--
43: <?php
44: print @$_POST['choices'];
45: ?>
46: --EXPECT--
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>