1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP POST 6CURLOPT_AWS_SIGV4 7</keywords> 8</info> 9 10# Server-side 11<reply> 12<data nocheck="yes"> 13HTTP/1.1 302 OK 14Date: Thu, 09 Nov 2010 14:49:00 GMT 15Server: test-server/fake 16Content-Type: text/html 17Content-Length: 0 18Location: /%TESTNUMBER0002 19 20</data> 21<data2> 22HTTP/1.1 200 OK 23Date: Thu, 09 Nov 2010 14:49:00 GMT 24Server: test-server/fake 25Content-Type: text/html 26Content-Length: 0 27 28</data2> 29</reply> 30 31# Client-side 32<client> 33<server> 34http 35</server> 36# this relies on the debug feature which allow to set the time 37<features> 38SSL 39Debug 40crypto 41</features> 42 43<name> 44HTTP POST with AWS_SIGV4 for binary data 45</name> 46<tool> 47lib%TESTNUMBER 48</tool> 49 50<command> 51http://127.0.0.1:9000/%TESTNUMBER/testapi/test 127.0.0.1:9000:%HOSTIP:%HTTPPORT 52</command> 53</client> 54 55# Verify data after the test has been "shot" 56<verify> 57<strip> 58^User-Agent:.* 59^Content-Type:.* 60^Accept:.* 61</strip> 62<protocol nonewline="yes"> 63POST /%TESTNUMBER/testapi/test HTTP/1.1 64Host: 127.0.0.1:9000 65Authorization: PROVIDER14-HMAC-SHA256 Credential=keyId/19700101/region/service/provider14_request, SignedHeaders=content-type;host;x-provider2-date, Signature=3436256c7c23adeb66dc15984eaa527edc4a504def61da2e0bf4b01ace4f3c0b 66X-Provider2-Date: 19700101T000000Z 67Content-Length: 9 68 69postData 70</protocol> 71</verify> 72</testcase> 73