saucelabs / forwarder

Forwarder is a production-ready, fast MITM proxy with PAC support. It's suitable for debugging, intercepting and manipulating HTTP traffic. It's used as a core component of Sauce Labs Sauce Connect Proxy.
https://forwarder-proxy.io
Mozilla Public License 2.0
200 stars 13 forks source link

bind: improve header flag usage with tags #822

Closed Choraden closed 1 month ago

Choraden commented 1 month ago
    -H, --header <header> (env FORWARDER_HEADER)
        Add or remove HTTP request headers. 

        Use the format:
        - name:value to add a header
        - name; to set the header to empty value
        - -name to remove the header
        - -name* to remove headers by prefix

        The header name will be normalized to canonical form. The header value should not contain any newlines or
        carriage returns. The flag can be specified multiple times. The following example removes the User-Agent
        header and all headers starting with X-. 

        -H "-User-Agent" -H "-X-*"