test1973 (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: POSTFIELDS 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 POST /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=7eb34202214384872221b99a9c671b7517891ac6af56b0aff24ec51adf62b10a 69 X-Amz-Date: 19700101T000000Z 70 x-amz-content-sha256: 4b02e333ccf7cf530ddee3e10ebe54e935500b5e570e68650d63d743e8bbc045 71 Content-Length: 12 72 73 post fields 74 </protocol> 75 </verify> 76 </testcase>