[GH-ISSUE #1646] Add option disable Content-Length in copy curl #1638

Closed
opened 2026-03-03 19:53:05 +03:00 by kerem · 4 comments
Owner

Originally created by @fleytman on GitHub (May 22, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1646

Originally assigned to: @NghiaTranUIT on GitHub.

Hello,

I have encountered an issue related to copying requests in Proxyman. When copying a request in cURL format, it's easy to overlook or not pay attention to the Content-Length header. This can lead to difficulties later on when making modifications to the copied request, as it may start behaving incorrectly.

My feature request is to add an option that explicitly enable/disable of the Content-Length header when copying a request. This will help users easily notice and consider this header when making changes to requests.

Additionally, I believe that it would be better to disable the automatic addition of the Content-Length header by default when copying a request. This will prevent situations where users, who only modify the request body, don't notice the presence of this header and encounter non-functional requests.

One typical use case for me is that I usually copy a cURL request and paste it into Postman, then only modify the request body. In such cases, disabling the automatic addition of the Content-Length header will help me avoid issues with requests that arise from the header being overlooked.

I believe that adding this option will make using Proxyman more reliable and convenient, especially for users who frequently modify only the request body.

Originally created by @fleytman on GitHub (May 22, 2023). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1646 Originally assigned to: @NghiaTranUIT on GitHub. Hello, I have encountered an issue related to copying requests in Proxyman. When copying a request in cURL format, it's easy to overlook or not pay attention to the Content-Length header. This can lead to difficulties later on when making modifications to the copied request, as it may start behaving incorrectly. My feature request is to add an option that explicitly enable/disable of the Content-Length header when copying a request. This will help users easily notice and consider this header when making changes to requests. Additionally, I believe that it would be better to disable the automatic addition of the Content-Length header by default when copying a request. This will prevent situations where users, who only modify the request body, don't notice the presence of this header and encounter non-functional requests. One typical use case for me is that I usually copy a cURL request and paste it into Postman, then only modify the request body. In such cases, disabling the automatic addition of the Content-Length header will help me avoid issues with requests that arise from the header being overlooked. I believe that adding this option will make using Proxyman more reliable and convenient, especially for users who frequently modify only the request body.
kerem 2026-03-03 19:53:05 +03:00
Author
Owner

@NghiaTranUIT commented on GitHub (May 23, 2023):

Hey @fleytman,

It's a good idea to add an option to opt-out of the Content-Length in the cURL. I will put it in the Setting -> Tool -> cURL section.

However, I'd set it ON by default. It means, it always includes the Content-Length unless you opt-out.

<!-- gh-comment-id:1558315575 --> @NghiaTranUIT commented on GitHub (May 23, 2023): Hey @fleytman, It's a good idea to add an option to opt-out of the `Content-Length` in the cURL. I will put it in the Setting -> Tool -> cURL section. However, I'd set it ON by default. It means, it always includes the Content-Length unless you opt-out.
Author
Owner

@NghiaTranUIT commented on GitHub (May 23, 2023):

@fleytman you can try this Beta build: https://download.proxyman.io/beta/Proxyman_4.7.1_Support_ContentLength_option_in_cURL.dmg

You can opt-out it Setting -> Tool

CleanShot 2023-05-23 at 09 02 45@2x

<!-- gh-comment-id:1558385621 --> @NghiaTranUIT commented on GitHub (May 23, 2023): @fleytman you can try this Beta build: https://download.proxyman.io/beta/Proxyman_4.7.1_Support_ContentLength_option_in_cURL.dmg You can opt-out it Setting -> Tool ![CleanShot 2023-05-23 at 09 02 45@2x](https://github.com/ProxymanApp/Proxyman/assets/5878421/3618b1b8-0893-48f6-a0e2-ce3e3a81583a)
Author
Owner

@fleytman commented on GitHub (May 23, 2023):

I would like to express my gratitude for adding the feature to Proxyman that I suggested. It's work!

However, I'd set it ON by default. It means, it always includes the Content-Length unless you opt-out.

However, I would like to share my opinion regarding the default setting for this feature.

In my suggestion, I mentioned the need to disable the Content-Length header by default when copying a request. I would like to justify this request and explain why I believe that OFF should be the preferred default value.

  1. Simplicity of use: Most users, when copying a request in cURL format, are likely to overlook the presence of the Content-Length header. This can lead to undesired results, especially if they are only modifying the request body. Disabling the header by default will prevent such situations and help avoid potential issues.

  2. Increased flexibility: Some APIs and services require the Content-Length header not to be included in requests. Enabling the header by default can create unnecessary headaches for users who need to explicitly exclude this header in their requests.

<!-- gh-comment-id:1558456958 --> @fleytman commented on GitHub (May 23, 2023): I would like to express my gratitude for adding the feature to Proxyman that I suggested. It's work! > However, I'd set it ON by default. It means, it always includes the Content-Length unless you opt-out. However, I would like to share my opinion regarding the default setting for this feature. In my suggestion, I mentioned the need to disable the Content-Length header by default when copying a request. I would like to justify this request and explain why I believe that OFF should be the preferred default value. 1. Simplicity of use: Most users, when copying a request in cURL format, are likely to overlook the presence of the Content-Length header. This can lead to undesired results, especially if they are only modifying the request body. Disabling the header by default will prevent such situations and help avoid potential issues. 2. Increased flexibility: Some APIs and services require the Content-Length header not to be included in requests. Enabling the header by default can create unnecessary headaches for users who need to explicitly exclude this header in their requests.
Author
Owner

@NghiaTranUIT commented on GitHub (May 23, 2023):

Thanks. It makes sense 👍 I will make it OFF by default 👍

<!-- gh-comment-id:1558547620 --> @NghiaTranUIT commented on GitHub (May 23, 2023): Thanks. It makes sense 👍 I will make it OFF by default 👍
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/Proxyman#1638
No description provided.