# How to POST a form signed with AWS Signature v4 via Gatling?

**URL:** <https://community.gatling.io/t/how-to-post-a-form-signed-with-aws-signature-v4-via-gatling/6912>\
**Category:** Gatling (Open-Source)\
**Tags:** gatling-academy\
**Created:** [July 10, 2022, 1:57am UTC](https://community.gatling.io/t/how-to-post-a-form-signed-with-aws-signature-v4-via-gatling/6912 "2022-07-10T01:57:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Playmith\_S](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@Anthony\_Playmith\_S](https://community.gatling.io/u/Anthony_Playmith_S)\
**Post date:** [July 10, 2022, 1:57am UTC](https://community.gatling.io/t/how-to-post-a-form-signed-with-aws-signature-v4-via-gatling/6912/1 "2022-07-10T01:57:14Z")

</div>

I’m trying to improve a script that I already have for load testing with Gatling. The scripts consist in injecting data filling forms with different type of inputs(dropdowns, textboxes, checkboxes, etc…). Now I have a form to upload attachments and I am trying to POST a PDF file but I have not found a way to do it.

Can you please take a look to the question I posted in Stackoverflow to get more context? Unfortunately i cannot attach more than 1 screenshot here.

> <https://stackoverflow.com/questions/72925627/how-to-post-an-attachmentpdf-via-gatling>

I’m pretty sure I’m doing something very wrong, this is the .exec I’m currently have

```auto
.exec(http("Upload the file")
            .post("/private/private/private/forms/submit")
            .headers(shared_headers)
            .formParamMap(Map(
                "resumableChunkNumber" -> "1",
                "resumableChunkSize" -> "1048576",
                "resumableCurrentChunkSize" -> "10080",
                "resumableTotalSize" -> "10080",
                "resumableType" -> "application/pdf",
                "resumableFilename" -> "Caso_SimuladoSC_202.pdf",
                "resumableRelativePath" -> "Caso_SimuladoSC_202.pdf",
                "resumableTotalChunks" -> "1"))
            .bodyPart(RawFileBodyPart("file", "Caso_SimuladoSC_202.pdf")
                .fileName("Caso_SimuladoSC_202.pdf")
                .transferEncoding("binary")).asMultipartForm
				)// end exec

```

The PDF file is in my Gating repo with another files.

How can I achieve this? Any idea? My Gatling version is 3.7.6

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [July 10, 2022, 7:08am UTC](https://community.gatling.io/t/how-to-post-a-form-signed-with-aws-signature-v4-via-gatling/6912/2 "2022-07-10T07:08:03Z")

</div>

Your form is not a standard one, it’s signed with [AWS Signature v4](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html).

There’s no built-in support for this in Gatling.  
I’m afraid that’s something you’ll have to figure out yourself, or contract with us so we work on this for you.
