xref: /curl/tests/data/test1935 (revision 18f1cd7a)
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 302 OK
13Date: Thu, 09 Nov 2010 14:49:00 GMT
14Server: test-server/fake
15Content-Type: text/html
16Content-Length: 0
17Location: /%TESTNUMBER0002
18
19</data>
20<data2>
21HTTP/1.1 200 OK
22Date: Thu, 09 Nov 2010 14:49:00 GMT
23Server: test-server/fake
24Content-Type: text/html
25Content-Length: 0
26
27</data2>
28</reply>
29
30# Client-side
31<client>
32<server>
33http
34</server>
35# this relies on the debug feature which allow to set the time
36<features>
37SSL
38Debug
39crypto
40</features>
41
42<name>
43HTTP AWS_SIGV4 with two providers and region
44</name>
45<tool>
46lib%TESTNUMBER
47</tool>
48
49<command>
50http://127.0.0.1:9000/%TESTNUMBER/testapi/test 127.0.0.1:9000:%HOSTIP:%HTTPPORT
51</command>
52</client>
53
54# Verify data after the test has been "shot"
55<verify>
56<strip>
57^User-Agent:.*
58^Content-Type:.*
59^Accept:.*
60</strip>
61<protocol>
62GET /%TESTNUMBER/testapi/test HTTP/1.1
63Host: 127.0.0.1:9000
64Authorization: XXX4-HMAC-SHA256 Credential=xxx/19700101/rrr/127/xxx4_request, SignedHeaders=content-type;host;x-yyy-date, Signature=a0b11b97b54689428d4188b788ed32865d607822d85d3e91cf06141f479dac0b
65X-Yyy-Date: 19700101T000000Z
66
67</protocol>
68</verify>
69</testcase>
70