| xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> | 
 | 2 | <info> | 
 | 3 | <keywords> | 
 | 4 | HTTP | 
 | 5 | HTTP POST | 
 | 6 | CURLOPT_KEEP_SENDING_ON_ERROR | 
 | 7 | </keywords> | 
 | 8 | </info> | 
 | 9 |  | 
 | 10 | # Server-side | 
 | 11 | <reply> | 
 | 12 | <servercmd> | 
 | 13 | auth_required | 
 | 14 | </servercmd> | 
 | 15 | <data nocheck="yes"> | 
 | 16 | HTTP/1.1 401 Authorization Required
 | 
 | 17 | Date: Tue, 09 Nov 2010 14:49:00 GMT
 | 
 | 18 | Server: test-server/fake
 | 
 | 19 | Content-Length: 15
 | 
 | 20 |  | 
 | 21 | Early Response | 
 | 22 | </data> | 
 | 23 | </reply> | 
 | 24 | # Client-side | 
 | 25 | <client> | 
 | 26 | <server> | 
 | 27 | http | 
 | 28 | </server> | 
 | 29 | <tool> | 
 | 30 | lib%TESTNUMBER | 
 | 31 | </tool> | 
 | 32 | <name> | 
 | 33 | HTTP with CURLOPT_KEEP_SENDING_ON_ERROR and an early error response | 
 | 34 | </name> | 
 | 35 | <command> | 
 | 36 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER | 
 | 37 | </command> | 
 | 38 | </client> | 
 | 39 |  | 
 | 40 | # Verify data after the test has been "shot" | 
 | 41 | # TEST_ERR_SUCCESS is errorcode 120 | 
 | 42 | <verify> | 
 | 43 | <errorcode> | 
 | 44 | 120 | 
 | 45 | </errorcode> | 
 | 46 | <protocol nonewline="yes"> | 
 | 47 | POST /%TESTNUMBER HTTP/1.1
 | 
 | 48 | Host: %HOSTIP:%HTTPPORT
 | 
 | 49 | Accept: */*
 | 
 | 50 | Content-Length: 3
 | 
 | 51 | Content-Type: application/x-www-form-urlencoded
 | 
 | 52 | 
 | 
 | 53 | POST /%TESTNUMBER HTTP/1.1
 | 
 | 54 | Host: %HOSTIP:%HTTPPORT
 | 
 | 55 | Accept: */*
 | 
 | 56 | Content-Length: 3
 | 
 | 57 | Content-Type: application/x-www-form-urlencoded
 | 
 | 58 | 
 | 
 | 59 | POST /%TESTNUMBER HTTP/1.1
 | 
 | 60 | Host: %HOSTIP:%HTTPPORT
 | 
 | 61 | Accept: */*
 | 
 | 62 | Content-Length: 3
 | 
 | 63 | Content-Type: application/x-www-form-urlencoded
 | 
 | 64 | 
 | 
 | 65 | aaaPOST /%TESTNUMBER HTTP/1.1
 | 
 | 66 | Host: %HOSTIP:%HTTPPORT
 | 
 | 67 | Accept: */*
 | 
 | 68 | Content-Length: 3
 | 
 | 69 | Content-Type: application/x-www-form-urlencoded
 | 
 | 70 | 
 | 
 | 71 | aaa | 
 | 72 | </protocol> | 
 | 73 | </verify> | 
 | 74 | </testcase> |