xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | GSS-API |
| 7 | </keywords> |
| 8 | </info> |
| 9 | |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <data> |
| 13 | HTTP/1.1 200 OK swsclose
|
| 14 | Content-Length: 23
|
| 15 |
|
| 16 | This IS the real page! |
| 17 | </data> |
| 18 | </reply> |
| 19 | |
| 20 | # Client-side |
| 21 | <client> |
| 22 | <server> |
| 23 | http |
| 24 | </server> |
| 25 | <features> |
| 26 | GSS-API |
| 27 | </features> |
| 28 | <name> |
| 29 | curl --negotiate should not send empty POST request only |
| 30 | </name> |
| 31 | <command> |
| 32 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u : --negotiate --data name=value |
| 33 | </command> |
| 34 | </client> |
| 35 | |
| 36 | # Verify data after the test has been "shot" |
| 37 | <verify> |
| 38 | <errorcode> |
| 39 | 0 |
| 40 | </errorcode> |
| 41 | <protocol nonewline="yes"> |
| 42 | POST /%TESTNUMBER HTTP/1.1
|
| 43 | Host: %HOSTIP:%HTTPPORT
|
| 44 | User-Agent: curl/%VERSION
|
| 45 | Accept: */*
|
| 46 | Content-Length: 10
|
| 47 | Content-Type: application/x-www-form-urlencoded
|
| 48 |
|
| 49 | name=value |
| 50 | </protocol> |
| 51 | </verify> |
| 52 | </testcase> |