[GH-ISSUE #4614] [bug]: POST body with Content-Type: x-www-form-urlencoded is not passed #1710

Open
opened 2026-03-16 21:29:56 +03:00 by kerem · 2 comments
Owner

Originally created by @hydro63 on GitHub (Dec 13, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4614

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

DISCLAIMER: i'm not very proficient in networking
I was trying to do a POST request to Discord API to get a token, but it always failed, despite working in python. After debugging, I found out that it didn't send the body data. I then tried it as a normal request with x-www-form-urlencoded, and it still didn't work.
When i try to do a POST request with Content-Type: x-www-form-urlencoded for normal text properties, the body that i want to pass is not actually passed to the request
CONFIG:
Screenshot 2024-12-13 105700
PRODUCED CURL:
Screenshot 2024-12-13 105708

Steps to reproduce

  1. Create POST request with some text data
  2. Set the Content-Type to x-www-form-urlencoded
  3. From testing, it's not gonna append the data

Environment

Production

Version

Local

Originally created by @hydro63 on GitHub (Dec 13, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4614 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior *DISCLAIMER: i'm not very proficient in networking* I was trying to do a POST request to Discord API to get a token, but it always failed, despite working in python. After debugging, I found out that it didn't send the body data. I then tried it as a normal request with x-www-form-urlencoded, and it still didn't work. When i try to do a POST request with Content-Type: x-www-form-urlencoded for normal text properties, the body that i want to pass is not actually passed to the request CONFIG: ![Screenshot 2024-12-13 105700](https://github.com/user-attachments/assets/ce53c2f2-6a7e-4a1c-bf8e-3200857a6ad5) PRODUCED CURL: ![Screenshot 2024-12-13 105708](https://github.com/user-attachments/assets/87da64a8-e16c-4d35-8965-6a86389dfe39) ### Steps to reproduce 1) Create POST request with some text data 2) Set the Content-Type to x-www-form-urlencoded 3) From testing, it's not gonna append the data ### Environment Production ### Version Local
Author
Owner

@Mrzhudky commented on GitHub (Jan 8, 2025):

I have discovered a similar issue. My request was successful, but when I tried to export the request as a shell cURL, I found that the data was empty. The 'application/x-www-form-urlencoded' type does not have data, while the 'content type: application/json' type has data.

<!-- gh-comment-id:2577062847 --> @Mrzhudky commented on GitHub (Jan 8, 2025): I have discovered a similar issue. My request was successful, but when I tried to export the request as a shell cURL, I found that the data was empty. The 'application/x-www-form-urlencoded' type does not have data, while the 'content type: application/json' type has data.
Author
Owner

@Munsen commented on GitHub (Oct 24, 2025):

I have similar issue with 'PUT' with JSON body
content-type was not sent to server.
I checked with WireShark.

<!-- gh-comment-id:3440448164 --> @Munsen commented on GitHub (Oct 24, 2025): I have similar issue with 'PUT' with JSON body `content-type` was not sent to server. I checked with WireShark.
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#1710
No description provided.