traffic_via

Synopsis

traffic_via [OPTIONS] [VIA …]

Description

traffic_via decodes the Traffic Server Via header codes. Via header strings are passed as command-line options. The enclosing square brackets are optional.

If the argument is ‘-‘, traffic_via will filter standard input for Via headers. This modes supports only supports Via headers that are enclosed by square brackets.

Options

-h``, --help

Print usage information and exit.

-V``, --version

Print version.

Examples

Decode the Via header from command-line arguments:

  1. $ traffic_via "[uScMsEf p eC:t cCMi p sF]"
  2. Via header is uScMsEf p eC:t cCMi p sF, Length is 24
  3. Via Header Details:
  4. Request headers received from client :simple request (not conditional)
  5. Result of Traffic Server cache lookup for URL :miss (a cache "MISS")
  6. Response information received from origin server :error in response
  7. Result of document write-to-cache: :no cache write performed
  8. Proxy operation result :unknown
  9. Error codes (if any) :connection to server failed
  10. Tunnel info :no tunneling
  11. Cache Type :cache
  12. Cache Lookup Result :cache miss (url not in cache)
  13. Parent proxy connection status :no parent proxy or unknown
  14. Origin server connection status :connection open failed

Decode the Via header from a curl request, using the X-Debug plugin:

  1. $ curl -H "X-Debug: Via" -I http://test.example.com | traffic_via -
  2. Via header is uScMsSf pSeN:t cCMi p sS, Length is 24
  3. Via Header Details:
  4. Request headers received from client :simple request (not conditional)
  5. Result of Traffic Server cache lookup for URL :miss (a cache "MISS")
  6. Response information received from origin server :connection opened successfully
  7. Result of document write-to-cache: :no cache write performed
  8. Proxy operation result :served or connection opened successfully
  9. Error codes (if any) :no error
  10. Tunnel info :no tunneling
  11. Cache Type :cache
  12. Cache Lookup Result :cache miss (url not in cache)
  13. Parent proxy connection status :no parent proxy or unknown
  14. Origin server connection status :connection opened successfully