1--TEST-- 2Multipart Form POST Data 3--HEADERS-- 4return <<<END 5Content-Type=multipart/form-data; boundary=---------------------------240723202011929 6Content-Length=862 7END; 8--ENV-- 9return <<<END 10CONTENT_TYPE=multipart/form-data; boundary=---------------------------240723202011929 11CONTENT_LENGTH=862 12END; 13--POST-- 14-----------------------------240723202011929 15Content-Disposition: form-data; name="entry" 16 17entry box 18-----------------------------240723202011929 19Content-Disposition: form-data; name="password" 20 21password box 22-----------------------------240723202011929 23Content-Disposition: form-data; name="radio1" 24 25test 1 26-----------------------------240723202011929 27Content-Disposition: form-data; name="checkbox1" 28 29test 1 30-----------------------------240723202011929 31Content-Disposition: form-data; name="choices" 32 33Choice 1 34-----------------------------240723202011929 35Content-Disposition: form-data; name="choices" 36 37Choice 2 38-----------------------------240723202011929 39Content-Disposition: form-data; name="file"; filename="info.php" 40Content-Type: application/octet-stream 41 42<?php 43phpinfo(); 44?> 45-----------------------------240723202011929-- 46 47--FILE-- 48<?php 49error_reporting(0); 50print_r($_POST); 51print_r($_FILES); 52?> 53--EXPECTF-- 54Array 55( 56 [entry] => entry box 57 [password] => password box 58 [radio1] => test 1 59 [checkbox1] => test 1 60 [choices] => Choice 2 61) 62Array 63( 64 [file] => Array 65 ( 66 [name] => info.php 67 [type] => application/octet-stream 68 [tmp_name] => %s 69 [error] => 0 70 [size] => 19 71 ) 72 73) 74