lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP POST |
| 6 | </keywords> |
| 7 | </info> |
| 8 | |
| 9 | # Server-side |
| 10 | <reply> |
| 11 | <data> |
| 12 | HTTP/1.1 100 Continue swsclose
|
| 13 | Silly-header: yeeeees
|
| 14 |
|
| 15 | </data> |
| 16 | </reply> |
| 17 | |
| 18 | # Client-side |
| 19 | <client> |
| 20 | <server> |
| 21 | http |
| 22 | </server> |
| 23 | <name> |
| 24 | HTTP multipart formpost with only a 100 reply |
| 25 | </name> |
| 26 | <command> |
| 27 | http://%HOSTIP:%HTTPPORT/158 -F name=daniel |
| 28 | </command> |
| 29 | </client> |
| 30 | |
| 31 | # Verify data after the test has been "shot" |
| 32 | <verify> |
| 33 | <strip> |
| 34 | ^User-Agent:.* |
| 35 | ^Content-Type: multipart/form-data.* |
| 36 | ^-----------------------.* |
| 37 | </strip> |
| 38 | <protocol> |
| 39 | POST /158 HTTP/1.1
|
| 40 | User-Agent: curl/7.11.2-CVS (i686-pc-linux-gnu) libcurl/7.11.2-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS
|
| 41 | Host: %HOSTIP:%HTTPPORT
|
| 42 | Accept: */*
|
| 43 | Content-Length: 145
|
| 44 | Expect: 100-continue
|
| 45 | Content-Type: multipart/form-data; boundary=----------------------------4f12fcdaa3bc
|
| 46 |
|
| 47 | ------------------------------4f12fcdaa3bc
|
| 48 | Content-Disposition: form-data; name="name"
|
| 49 |
|
| 50 | daniel
|
| 51 | ------------------------------4f12fcdaa3bc--
|
| 52 | </protocol> |
| 53 | <errorcode> |
| 54 | 52 |
| 55 | </errorcode> |
| 56 | </verify> |
| 57 | </testcase> |