[GH-ISSUE #2571] [bug]: Multiple form data with the same name only send the last one #854

Closed
opened 2026-03-16 17:25:56 +03:00 by kerem · 0 comments
Owner

Originally created by @ghost on GitHub (Aug 9, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2571

Originally assigned to: @nivedin on GitHub.

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When using application/x-www-from-urlencoded to send form data, if you fill in duplicate key names, only the last key will be sent.

key value
id 1
id 2

Should be encoded as id=1&id=2,
but is actually encoded as id=2.

Steps to reproduce

  1. Enter test url
  2. Choose Body
  3. Change Content-Type to application/x-www-from-urlencoded
  4. Fill in two values ​​with the same key
  5. Send,and you can see the wrong Body on the server

Environment

Release

Version

Cloud

Originally created by @ghost on GitHub (Aug 9, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2571 Originally assigned to: @nivedin on GitHub. ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When using `application/x-www-from-urlencoded` to send form data, if you fill in duplicate key names, only the last key will be sent. |key|value| |---|---| |id|1| |id|2| Should be encoded as `id=1&id=2`, but is actually encoded as `id=2`. ### Steps to reproduce 1. Enter test url 2. Choose Body 3. Change Content-Type to `application/x-www-from-urlencoded` 4. Fill in two values ​​with the same key 5. Send,and you can see the wrong Body on the server ### Environment Release ### Version Cloud
kerem 2026-03-16 17:25:56 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#854
No description provided.