test1978 (1647B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 CURLOPT_AWS_SIGV4 6 </keywords> 7 </info> 8 9 # Server-side 10 <reply> 11 <data nocheck="yes"> 12 HTTP/1.1 200 OK 13 Date: Thu, 09 Nov 2010 14:49:00 GMT 14 Server: test-server/fake 15 Content-Length: 0 16 17 </data> 18 </reply> 19 20 # Client-side 21 <client> 22 <server> 23 http 24 </server> 25 <features> 26 SSL 27 Debug 28 crypto 29 aws 30 </features> 31 <name> 32 HTTP AWS_SIGV4 canonical request duplicate header test 33 </name> 34 <tool> 35 lib%TESTNUMBER 36 </tool> 37 <command> 38 http://xxx:yyy@127.0.0.1:9000/%TESTNUMBER/testapi/test 127.0.0.1:9000:%HOSTIP:%HTTPPORT 39 </command> 40 </client> 41 42 # Verify data after the test has been "shot" 43 <verify> 44 <strip> 45 ^User-Agent:.* 46 ^Content-Length:.* 47 ^Accept:.* 48 </strip> 49 <protocol crlf="yes"> 50 PUT /%TESTNUMBER/testapi/test HTTP/1.1 51 Host: 127.0.0.1:9000 52 Authorization: AWS4-HMAC-SHA256 Credential=xxx/19700101/us-east-1/s3/aws4_request, SignedHeaders=curr-header-no-colon;duplicate-header;header-no-value;header-some-no-value;host;next-header-no-colon;some-other-header;x-amz-content-sha256;x-amz-date;x-amz-meta-blah;x-amz-meta-test;x-amz-meta-test2, Signature=b1e2ac88fd1307f0b9031140c3c99cc20d6263f3fe64b132dc433c95fe2c6316 53 X-Amz-Date: 19700101T000000Z 54 x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 55 x-amz-meta-test: test2 56 some-other-header: value 57 x-amz-meta-test: test1 58 duplicate-header: duplicate 59 x-amz-meta-test: test3 60 X-amz-meta-test2: test2 61 x-amz-meta-blah: blah 62 x-Amz-meta-test2: test1 63 x-amz-Meta-test2: test3 64 curr-header-no-colon: value 65 next-header-no-colon: value 66 duplicate-header: duplicate 67 header-no-value: 68 header-no-value: 69 header-some-no-value: 70 header-some-no-value: value 71 72 </protocol> 73 </verify> 74 </testcase>