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