[GH-ISSUE #3461] [bug]: Parameters are truncated when requesting an import as cURL command #1168

Closed
opened 2026-03-16 18:57:38 +03:00 by kerem · 9 comments
Owner

Originally created by @shipko on GitHub (Oct 19, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3461

Originally assigned to: @JonasRafael16 on GitHub.

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

I prepare POST request with application/x-www-form-urlencoded and with parameter name "test", value {"firstName":"Test","lastName":"last name Test"}
When I generate cURL code I see code with clipped parameter.

curl --request POST \
  --url https://echo.hoppscotch.io/ \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data 'test="{\"firstName\"'
Снимок экрана 2023-10-19 в 13 07 00

Steps to reproduce

  1. Create new POST request
  2. Input URL https://echo.hoppscotch.io
  3. Define form type as application/x-www-form-urlencoded
  4. Add parameter name as test with value {"firstName":"Test","lastName":"last name Test"}
  5. Click on Show code
  6. Make sure that not all parameters are filled in

Environment

Production

Version

Cloud

Originally created by @shipko on GitHub (Oct 19, 2023). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3461 Originally assigned to: @JonasRafael16 on GitHub. ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior I prepare POST request with application/x-www-form-urlencoded and with parameter name "test", value `{"firstName":"Test","lastName":"last name Test"} ` When I generate cURL code I see code with clipped parameter. ``` curl --request POST \ --url https://echo.hoppscotch.io/ \ --header 'content-type: application/x-www-form-urlencoded' \ --data 'test="{\"firstName\"' ``` <img width="1049" alt="Снимок экрана 2023-10-19 в 13 07 00" src="https://github.com/hoppscotch/hoppscotch/assets/1519243/de55dbe9-e61f-434d-9fc8-1b3098066e36"> <img width="524" alt="" src="https://github.com/hoppscotch/hoppscotch/assets/1519243/974c5248-0aa5-44e3-bba3-94f4e0dac59f"> ### Steps to reproduce 1. Create new POST request 2. Input URL https://echo.hoppscotch.io 3. Define form type as application/x-www-form-urlencoded 4. Add parameter name as `test` with value `{"firstName":"Test","lastName":"last name Test"} ` 5. Click on Show code 6. Make sure that not all parameters are filled in ### Environment Production ### Version Cloud
kerem 2026-03-16 18:57:38 +03:00
Author
Owner

@JonasRafael16 commented on GitHub (Oct 19, 2023):

I would like to contribute to the project, can you sign for me?

<!-- gh-comment-id:1771789313 --> @JonasRafael16 commented on GitHub (Oct 19, 2023): I would like to contribute to the project, can you sign for me?
Author
Owner

@liyasthomas commented on GitHub (Oct 20, 2023):

Assigning this to you @JonasRafael16.

<!-- gh-comment-id:1772051178 --> @liyasthomas commented on GitHub (Oct 20, 2023): Assigning this to you @JonasRafael16.
Author
Owner

@shipko commented on GitHub (Oct 31, 2023):

@JonasRafael16 Hi! Any news?

<!-- gh-comment-id:1786438109 --> @shipko commented on GitHub (Oct 31, 2023): @JonasRafael16 Hi! Any news?
Author
Owner

@JonasRafael16 commented on GitHub (Nov 3, 2023):

@JonasRafael16 Hi! Any news?

Sorry I couldn't solve the problem

<!-- gh-comment-id:1792185858 --> @JonasRafael16 commented on GitHub (Nov 3, 2023): > @JonasRafael16 Hi! Any news? Sorry I couldn't solve the problem
Author
Owner

@dhanesh12twice commented on GitHub (Nov 4, 2023):

Ive reproduced the bug and yess it needs fix . Can i work on this ?? @shipko

<!-- gh-comment-id:1793527604 --> @dhanesh12twice commented on GitHub (Nov 4, 2023): Ive reproduced the bug and yess it needs fix . Can i work on this ?? @shipko
Author
Owner

@shipko commented on GitHub (Nov 5, 2023):

@dhanesh12twice of course!

<!-- gh-comment-id:1793626826 --> @shipko commented on GitHub (Nov 5, 2023): @dhanesh12twice of course!
Author
Owner

@shipko commented on GitHub (Nov 5, 2023):

@liyasthomas please, assigning to @dhanesh12twice this issue

<!-- gh-comment-id:1793726967 --> @shipko commented on GitHub (Nov 5, 2023): @liyasthomas please, assigning to @dhanesh12twice this issue
Author
Owner

@ajmalmohad commented on GitHub (Nov 7, 2023):

Hey, I've came up with a solution for this, opened a PR now

<!-- gh-comment-id:1797990395 --> @ajmalmohad commented on GitHub (Nov 7, 2023): Hey, I've came up with a solution for this, opened a PR now
Author
Owner

@liyasthomas commented on GitHub (Dec 20, 2023):

Thanks for your patience and valuable feedback. This issue has been resolved in the latest release.

Closing this ticket as the fix is now available in the recent version. Feel free to reach out if you encounter any further concerns.

<!-- gh-comment-id:1863805321 --> @liyasthomas commented on GitHub (Dec 20, 2023): Thanks for your patience and valuable feedback. This issue has been resolved in the latest release. Closing this ticket as the fix is now available in the recent version. Feel free to reach out if you encounter any further concerns.
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#1168
No description provided.