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