HTTP::Proxy::HeaderFilter::standard(3pm)

HTTP::Proxy::HeaderFilter::standard3pm

An internal filter to respect rfc2616

Overview

This is an internal filter used by HTTP::Proxy to enforce behaviour compliant with RFC 2616.

Method

This filter implements a single method that is called automatically:

filter()

Enforce RFC 2616-compliant behaviour, by adding the "Via:" and "X-Forwarded-For:" headers (except when the proxy was instructed not to add them), decrementing the "Max-Forwards:" header and removing the hop-by-hop and LWP::UserAgent headers.

Note that the filter will automatically remove the "Accept-Encoding" headers if the proxy has at least one HTTP::Proxy::BodyFilter filter. (This is to ensure that the filters will receive uncompressed data.)

Releases

11 releases since Debian 3.1 (Sarge); the text changed 8 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8
  7. 9
  8. 10–11
  9. 12–13

Author

Philippe "BooK" Bruhat, <[email protected]>.

Thanks to Gisle Aas, for directions regarding the handling of the hop-by-hop headers.

License

This module is free software; you can redistribute it or modify it under the same terms as Perl itself.

From libhttp-proxy-perl 0.304-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.