[Bug 16138] New: Allow to override Content-Length in wget

bugzilla at busybox.net bugzilla at busybox.net
Fri Jul 26 22:05:28 UTC 2024


https://bugs.busybox.net/show_bug.cgi?id=16138

            Bug ID: 16138
           Summary: Allow to override Content-Length in wget
           Product: Busybox
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: ale5000 at gmail.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

Hi,
when manually providing Content-Length to wget the header is sent two times;
this problem doesn't happen in stand-alone wget (outside busybox).
The reason I set it manually is to send to headers in a specified order.

Is it possible to allow it, please?

Example:
wget -O - --header 'Content-Type: text/plain;charset=UTF-8' --header
"Content-Length: 2" --header 'Other-Header: 1' --post-data '{}' -- "${url}"

This commit can be reused:
https://github.com/rmyorston/busybox-w32/commit/2628ffaceabcfcd614f9b09db98da82e98fb048b

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list