1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP PUT 6Expect 7</keywords> 8</info> 9# Server-side 10<reply> 11# 417 means the server didn't like the Expect header 12<data> 13HTTP/1.1 417 OK swsbounce 14Date: Thu, 09 Nov 2010 14:49:00 GMT 15Server: test-server/fake 16Content-Length: 0 17 18</data> 19<data1> 20HTTP/1.1 200 OK 21Date: Thu, 09 Nov 2010 14:49:00 GMT 22Server: test-server/fake 23Content-Length: 10 24 25blablabla 26</data1> 27<datacheck> 28HTTP/1.1 417 OK swsbounce 29Date: Thu, 09 Nov 2010 14:49:00 GMT 30Server: test-server/fake 31Content-Length: 0 32 33HTTP/1.1 200 OK 34Date: Thu, 09 Nov 2010 14:49:00 GMT 35Server: test-server/fake 36Content-Length: 10 37 38blablabla 39</datacheck> 40<servercmd> 41no-expect 42</servercmd> 43</reply> 44 45# Client-side 46<client> 47<server> 48http 49</server> 50 <name> 51HTTP PUT with Expect: 100-continue and 417 response 52 </name> 53 <command> 54http://%HOSTIP:%HTTPPORT/we/want/357 -T log/test357.txt 55</command> 56<file name="log/test357.txt"> 57Weird 58 file 59 to 60 upload 61for 62 testing 63the 64 PUT 65 feature 66</file> 67</client> 68 69# Verify data after the test has been "shot" 70<verify> 71<protocol> 72PUT /we/want/357 HTTP/1.1 73Host: %HOSTIP:%HTTPPORT 74User-Agent: curl/%VERSION 75Accept: */* 76Content-Length: 78 77Expect: 100-continue 78 79PUT /we/want/357 HTTP/1.1 80Host: %HOSTIP:%HTTPPORT 81User-Agent: curl/%VERSION 82Accept: */* 83Content-Length: 78 84 85Weird 86 file 87 to 88 upload 89for 90 testing 91the 92 PUT 93 feature 94</protocol> 95</verify> 96</testcase> 97