test1958 (1334B)
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 302 OK 13 Date: Thu, 09 Nov 2010 14:49:00 GMT 14 Server: test-server/fake 15 Content-Type: text/html 16 Content-Length: 0 17 Location: /%TESTNUMBER 18 19 </data> 20 <data2> 21 HTTP/1.1 200 OK 22 Date: Thu, 09 Nov 2010 14:49:00 GMT 23 Server: test-server/fake 24 Content-Type: text/html 25 Content-Length: 0 26 27 </data2> 28 </reply> 29 30 # Client-side 31 <client> 32 <server> 33 http 34 </server> 35 # this relies on the debug feature which allows tests to set the time 36 <features> 37 SSL 38 Debug 39 crypto 40 aws 41 </features> 42 <setenv> 43 CURL_FORCEHOST=1 44 </setenv> 45 46 <name> 47 HTTP AWS_SIGV4 with X-Xxx-Content-Sha256 with whitespace 48 </name> 49 <tool> 50 lib%TESTNUMBER 51 </tool> 52 53 <command> 54 http://exam.ple.com:9000/aws_sigv4/testapi/test exam.ple.com:9000:%HOSTIP:%HTTPPORT 55 </command> 56 </client> 57 58 # Verify data after the test has been "shot" 59 <verify> 60 <strip> 61 ^User-Agent:.* 62 ^Content-Type:.* 63 ^Accept:.* 64 </strip> 65 <protocol> 66 GET /aws_sigv4/testapi/test HTTP/1.1 67 Host: exam.ple.com:9000 68 Authorization: XXX4-HMAC-SHA256 Credential=xxx/19700101/ple/exam/xxx4_request, SignedHeaders=content-type;host;x-xxx-content-sha256;x-xxx-date, Signature=25b4cac711ea8f65010c485d3778885f5f3870d0b8ff0b3ab58a8d7eeab991ff 69 X-Xxx-Date: 19700101T000000Z 70 X-Xxx-Content-Sha256: arbitrary 71 72 </protocol> 73 </verify> 74 </testcase>