test1970 (1408B)
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: /%TESTNUMBER0002 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 for AWS S3: UPLOAD with INFILESIZE=0 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 PUT /aws_sigv4/testapi/test HTTP/1.1 67 Host: exam.ple.com:9000 68 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 69 X-Amz-Date: 19700101T000000Z 70 x-amz-content-sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 71 Content-Length: 0 72 73 </protocol> 74 </verify> 75 </testcase>