xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP POST |
| 6 | flaky |
| 7 | </keywords> |
| 8 | </info> |
| 9 | |
| 10 | # |
| 11 | # Server-side |
| 12 | <reply> |
| 13 | <data> |
| 14 | </data> |
| 15 | </reply> |
| 16 | |
| 17 | # Client-side |
| 18 | <client> |
| 19 | <features> |
| 20 | Mime |
| 21 | </features> |
| 22 | <server> |
| 23 | http |
| 24 | </server> |
| 25 | # tool is what to use instead of 'curl' |
| 26 | <tool> |
| 27 | lib%TESTNUMBER |
| 28 | </tool> |
| 29 | |
| 30 | <name> |
| 31 | HTTP multi-part formpost with aborted read callback |
| 32 | </name> |
| 33 | <command> |
| 34 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER |
| 35 | </command> |
| 36 | </client> |
| 37 | |
| 38 | # |
| 39 | # Verify data after the test has been "shot" |
| 40 | <verify> |
| 41 | <strippart> |
| 42 | s/^--------------------------[a-z0-9]*/------------------------------/ |
| 43 | s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/ |
| 44 | </strippart> |
| 45 | <protocol> |
| 46 | POST /%TESTNUMBER HTTP/1.1
|
| 47 | Host: %HOSTIP:%HTTPPORT
|
| 48 | Accept: */*
|
| 49 | Content-Length: 744
|
| 50 | Content-Type: multipart/form-data; boundary=----------------------------
|
| 51 |
|
| 52 | ------------------------------
|
| 53 | Content-Disposition: form-data; name="sendfile"; filename="postit2.c"
|
| 54 |
|
| 55 | </protocol> |
| 56 | # CURLE_ABORTED_BY_CALLBACK (42) |
| 57 | <errorcode> |
| 58 | 42 |
| 59 | </errorcode> |
| 60 | </verify> |
| 61 | </testcase> |