artilleryio / artillery-core

artillery-core - deprecated
Mozilla Public License 2.0
29 stars 104 forks source link

form not sending data #224

Closed trajano closed 2 years ago

trajano commented 2 years ago

I am trying to send this data over

      - post:
          url: "/logout"
          form:
            token: {{ refresh_token }}
            token_type_hint: refresh_token
          headers:
            Authorization: Basic XXXXXXXXXXXX
            Accept: application/json
            # Content-Type: application/x-www-form-urlencoded
            Origin: "{{ origin }}"

but with HTTP debug

| 2022-03-09T15:54:29.215Z http request: {
  "url": "https://api.pnb.devhaus.net/logout",
  "method": "POST",
  "headers": {
    "user-agent": "Artillery (https://artillery.io)",
    "authorization": "Basic XXXXXXXX"
    "accept": "application/json",
    "origin": "https://localhost:3000"
  }
}

I don't see the form body in the request the others have "json" this happens to be form encoding only.

trajano commented 2 years ago

"{{ refresh_token }}" needs to be quoted