xref: /curl/tests/data/test1964 (revision b137634b)
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: Tue, 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: Tue, 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
38crypto
39</features>
40
41<name>
42HTTP AWS_SIGV4 with one provider and auth cred via URL, but X-Xxx-Date header set manually
43</name>
44<tool>
45lib%TESTNUMBER
46</tool>
47
48<command>
49http://xxx:yyy@127.0.0.1:9000/%TESTNUMBER/testapi/test 127.0.0.1:9000:%HOSTIP:%HTTPPORT
50</command>
51</client>
52
53# Verify data after the test has been "shot"
54<verify>
55<strip>
56^User-Agent:.*
57^Content-Type:.*
58^Accept:.*
59</strip>
60<protocol>
61GET /%TESTNUMBER/testapi/test HTTP/1.1
62Host: 127.0.0.1:9000
63Authorization: XXX4-HMAC-SHA256 Credential=xxx/19700101/0/127/xxx4_request, SignedHeaders=content-type;host;x-xxx-date, Signature=35da102c1df68f2ef85ade08ecc212fa663a66e3a973146f6578a5c5426e9669
64X-Xxx-Date: 19700101T000000Z
65
66</protocol>
67</verify>
68</testcase>
69