2022-01-13 22:53:52 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
CURLOPT_AWS_SIGV4
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data nocheck="yes">
|
|
|
|
HTTP/1.1 302 OK
|
|
|
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Server: test-server/fake
|
|
|
|
Content-Type: text/html
|
|
|
|
Content-Length: 0
|
|
|
|
Location: /%TESTNUMBER0002
|
|
|
|
|
|
|
|
</data>
|
|
|
|
<data2>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Server: test-server/fake
|
|
|
|
Content-Type: text/html
|
|
|
|
Content-Length: 0
|
|
|
|
|
|
|
|
</data2>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
# this relies on the debug feature which allow to set the time
|
|
|
|
<features>
|
|
|
|
SSL
|
|
|
|
debug
|
|
|
|
crypto
|
|
|
|
</features>
|
|
|
|
<setenv>
|
|
|
|
CURL_FORCEHOST=1
|
|
|
|
</setenv>
|
|
|
|
|
|
|
|
<name>
|
2022-11-22 03:56:13 +08:00
|
|
|
HTTP AWS_SIGV4 without X-Xxx-Content-Sha256
|
2022-01-13 22:53:52 +08:00
|
|
|
</name>
|
|
|
|
<tool>
|
|
|
|
lib%TESTNUMBER
|
|
|
|
</tool>
|
|
|
|
|
|
|
|
<command>
|
2022-11-22 03:56:13 +08:00
|
|
|
http://exam.ple.com:9000/aws_sigv4/testapi/test exam.ple.com:9000:%HOSTIP:%HTTPPORT
|
2022-01-13 22:53:52 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^User-Agent:.*
|
|
|
|
^Content-Type:.*
|
|
|
|
^Accept:.*
|
|
|
|
</strip>
|
|
|
|
<protocol>
|
2022-11-22 03:56:13 +08:00
|
|
|
GET /aws_sigv4/testapi/test HTTP/1.1
|
2022-01-13 22:53:52 +08:00
|
|
|
Host: exam.ple.com:9000
|
2022-11-22 03:56:13 +08:00
|
|
|
Authorization: XXX4-HMAC-SHA256 Credential=xxx/19700101/ple/exam/xxx4_request, SignedHeaders=content-type;host;tesmixcase;test0;test1;test2;test_space;x-xxx-date, Signature=779a8ff876528aece8bf03b1296702af0644a4745aa5feabb6ebb1a7bb0d907e
|
2022-01-13 22:53:52 +08:00
|
|
|
X-Xxx-Date: 19700101T000000Z
|
|
|
|
test2: 1234
|
|
|
|
test_space: t s m end
|
|
|
|
tesMixCase: MixCase
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|