trimstray / htrace.sh

My simple Swiss Army knife for http/https troubleshooting and profiling.
GNU General Public License v3.0
3.75k stars 233 forks source link

'via' output header incorrect value. #74

Closed trimstray closed 5 years ago

trimstray commented 5 years ago

When -u value is ip address (e.g. 127.0.0.1):

htrace.sh -u http://127.0.0.1:10080 -b

     htrace.sh v1.1.3  (openssl 1.1.0h: ok)

    URI: http://127.0.0.1:10080

         - request-method: GET

    req  time_total   time_connect    local_socket           via              remote_socket         geo   proto   ver   code     next_hop
    ---  ----------   ------------    ------------           ---              -------------         ---   -----   ---   ----     --------
 •   1   0.000583     0.000583        127.0.0.1:50638        xxx.xxx.xxx.xxx  127.0.0.1:10080             http    1.1   200