| xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> | 
 | 2 | <info> | 
 | 3 | <keywords> | 
 | 4 | HTTP | 
 | 5 | HTTP PUT | 
 | 6 | Expect: 100-continue | 
 | 7 | </keywords> | 
 | 8 | </info> | 
 | 9 |  | 
 | 10 | # | 
 | 11 | # Server-side | 
 | 12 | <reply> | 
 | 13 | <data nocheck="yes"> | 
 | 14 | HTTP/1.1 400 NOOOOOOOOO | 
 | 15 | Date: Tue, 09 Nov 2010 14:49:00 GMT | 
 | 16 | Server: test-server/fake | 
 | 17 | Content-Length: 9 | 
 | 18 | Content-Type: text/html | 
 | 19 |  | 
 | 20 | FAILURE1 | 
 | 21 | </data> | 
 | 22 |  | 
 | 23 | <data1> | 
 | 24 | HTTP/1.1 400 NEITHER | 
 | 25 | Date: Tue, 09 Nov 2010 14:49:00 GMT | 
 | 26 | Server: test-server/fake | 
 | 27 | Content-Length: 9 | 
 | 28 | Content-Type: text/html | 
 | 29 |  | 
 | 30 | FAILURE2 | 
 | 31 | </data1> | 
 | 32 |  | 
 | 33 | # we use skip to make the test server never read the full payload off | 
 | 34 | # the socket and instead return the response at once  | 
 | 35 | <servercmd> | 
 | 36 | skip: 100 | 
 | 37 | </servercmd> | 
 | 38 | </reply> | 
 | 39 |  | 
 | 40 | # | 
 | 41 | # Client-side | 
 | 42 | <client> | 
 | 43 | # 100 x 'x' | 
 | 44 | <file name="log/file%TESTNUMBER"> | 
 | 45 | XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | 
 | 46 | </file> | 
 | 47 | <server> | 
 | 48 | http | 
 | 49 | </server> | 
 | 50 |  <name> | 
 | 51 | HTTP PUT expect 100-continue with a 400 | 
 | 52 |  </name> | 
 | 53 |  <command option="no-output"> | 
 | 54 | -T log/file%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER -T log/file%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 | 
 | 55 | </command> | 
 | 56 | </client> | 
 | 57 |  | 
 | 58 | # | 
 | 59 | # Verify data after the test has been "shot" | 
 | 60 | <verify> | 
 | 61 | <stdout> | 
 | 62 | HTTP/1.1 400 NOOOOOOOOO | 
 | 63 | Date: Tue, 09 Nov 2010 14:49:00 GMT | 
 | 64 | Server: test-server/fake | 
 | 65 | Content-Length: 9 | 
 | 66 | Content-Type: text/html | 
 | 67 |  | 
 | 68 | FAILURE1 | 
 | 69 | HTTP/1.1 400 NEITHER | 
 | 70 | Date: Tue, 09 Nov 2010 14:49:00 GMT | 
 | 71 | Server: test-server/fake | 
 | 72 | Content-Length: 9 | 
 | 73 | Content-Type: text/html | 
 | 74 |  | 
 | 75 | FAILURE2 | 
 | 76 | </stdout> | 
 | 77 | <protocol> | 
 | 78 | PUT /%TESTNUMBER HTTP/1.1
 | 
 | 79 | Host: %HOSTIP:%HTTPPORT
 | 
 | 80 | User-Agent: curl/%VERSION
 | 
 | 81 | Accept: */*
 | 
 | 82 | Content-Length: 100
 | 
 | 83 | Expect: 100-continue
 | 
 | 84 | 
 | 
 | 85 | PUT /%TESTNUMBER0001 HTTP/1.1
 | 
 | 86 | Host: %HOSTIP:%HTTPPORT
 | 
 | 87 | User-Agent: curl/%VERSION
 | 
 | 88 | Accept: */*
 | 
 | 89 | Content-Length: 100
 | 
 | 90 | Expect: 100-continue
 | 
 | 91 | 
 | 
 | 92 | </protocol> | 
 | 93 | </verify> | 
 | 94 | </testcase> |