[GH-ISSUE #167] Content-Type is always set to application/x-www-form-urlencoded #66

Closed
opened 2026-03-16 13:07:43 +03:00 by kerem · 4 comments
Owner

Originally created by @davidyscott on GitHub (Sep 25, 2019).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/167

Describe the bug
Regardless of what I select from the Content Type dropdown, requests are actually sent with the header "Content-Type: application/x-www-form-urlencoded".

To Reproduce
Steps to reproduce the behavior:

  1. Open Postwoman and your browser's Network Tools
  2. Make a POST or PUT request with Content Type of "application/json" selected
  3. Observe that the request was actually sent with the header "Content-Type: application/x-www-form-urlencoded"

Expected behavior
The correct Content-Type header is sent.

Originally created by @davidyscott on GitHub (Sep 25, 2019). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/167 **Describe the bug** Regardless of what I select from the Content Type dropdown, requests are actually sent with the header "Content-Type: application/x-www-form-urlencoded". **To Reproduce** Steps to reproduce the behavior: 1. Open Postwoman and your browser's Network Tools 1. Make a POST or PUT request with Content Type of "application/json" selected 1. Observe that the request was actually sent with the header "Content-Type: application/x-www-form-urlencoded" **Expected behavior** The correct Content-Type header is sent.
kerem 2026-03-16 13:07:43 +03:00
Author
Owner

@liyasthomas commented on GitHub (Sep 25, 2019):

I failed to reproduce this issue

<!-- gh-comment-id:534851153 --> @liyasthomas commented on GitHub (Sep 25, 2019): I failed to reproduce this issue
Author
Owner

@AndrewBastin commented on GitHub (Sep 25, 2019):

I tested the behavior both from the server and client side, the content-type header seems to be sent fine.

<!-- gh-comment-id:535171873 --> @AndrewBastin commented on GitHub (Sep 25, 2019): I tested the behavior both from the server and client side, the content-type header seems to be sent fine.
Author
Owner

@davidyscott commented on GitHub (Sep 25, 2019):

😕 I can't repro it anymore either. Probably some sort of user error!!

<!-- gh-comment-id:535267358 --> @davidyscott commented on GitHub (Sep 25, 2019): :confused: I can't repro it anymore either. Probably some sort of user error!!
Author
Owner

@flleeppyy commented on GitHub (Mar 16, 2024):

Hiya, I'm having this issue. I'm only sending query parameters. My body is set to none, yet in the request sent by Hoppscotch, the content type is set to application/x-www-form-urlencoded
image
image

<!-- gh-comment-id:2001052151 --> @flleeppyy commented on GitHub (Mar 16, 2024): Hiya, I'm having this issue. I'm only sending query parameters. My body is set to none, yet in the request sent by Hoppscotch, the content type is set to `application/x-www-form-urlencoded` ![image](https://github.com/hoppscotch/hoppscotch/assets/18307183/3880c6ac-0037-4e50-bc0d-4c4b578322bf) ![image](https://github.com/hoppscotch/hoppscotch/assets/18307183/d7107db6-6e53-4fff-8b47-6afffe81a627)
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#66
No description provided.