xref: /curl/tests/data/test1971 (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 100 Continue
13
14HTTP/1.1 200 OK
15Date: Thu, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17Content-Type: text/html
18Content-Length: 0
19
20</data>
21</reply>
22
23# Client-side
24<client>
25<server>
26http
27</server>
28# this relies on the debug feature which allow to set the time
29<features>
30SSL
31Debug
32crypto
33</features>
34<setenv>
35CURL_FORCEHOST=1
36</setenv>
37
38<name>
39HTTP AWS_SIGV4 for AWS S3: UPLOAD with unknown INFILESIZE
40</name>
41<tool>
42lib%TESTNUMBER
43</tool>
44
45<command>
46http://exam.ple.com:9000/aws_sigv4/testapi/test exam.ple.com:9000:%HOSTIP:%HTTPPORT
47</command>
48</client>
49
50# Verify data after the test has been "shot"
51<verify>
52<strip>
53^User-Agent:.*
54^Content-Type:.*
55^Accept:.*
56</strip>
57<protocol>
58PUT /aws_sigv4/testapi/test HTTP/1.1
59Host: exam.ple.com:9000
60Authorization: AWS4-HMAC-SHA256 Credential=xxx/19700101/us-east-1/s3/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=4a6e9b4af0542ffb83744c6852f8e1bfec14f2a67e6f6f037b39f172f79d62af
61X-Amz-Date: 19700101T000000Z
62x-amz-content-sha256: UNSIGNED-PAYLOAD
63Transfer-Encoding: chunked
64Expect: 100-continue
65
660
67
68</protocol>
69</verify>
70</testcase>
71