mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-20 01:11:40 +03:00
56d4fa4485
AWS SigV4 support is available in curl since 7.75.0 (December 2020). Add the necessary bits for Hurl to understand this option and pass it on to libcurl, both as a command line option `--aws-sigv4` and as a per-request option `aws-sigv4` in Hurlfiles. Do not emit `Authorization: Basic` when aws-sigv4 is used, as this would take priority over the `Authorization` header generated by libcurl. Instead, explicitly set `username` and `password` options. Suppress removal of the `Expect:` header when using aws-sigv4, as a workaround for curl/curl#11664. Add a corresponding integration test.
10 lines
152 B
Plaintext
10 lines
152 B
Plaintext
POST http://localhost:8000/aws-sigv4
|
|
X-Amz-Date: 20230813T061344Z
|
|
[Options]
|
|
aws-sigv4: aws:amz:eu-central-1:hurltest
|
|
[FormParams]
|
|
test: test
|
|
|
|
HTTP 200
|
|
|