davecheney / httpstat

It's like curl -v, with colours.
MIT License
6.95k stars 382 forks source link

httpstat returns 403, doesn't hide timings #161

Open pieterhouwen opened 2 years ago

pieterhouwen commented 2 years ago

I built the project by downloading the git and running "go build" instead of the supplied command because I got an error

can't load package: package github.com/davecheney/httpstat@latest: can only use path@version syntax with 'go get'

When I use the following command: ./httpstat -I -L https://pieterhouwen.info I get the following output:

image

When I use curl on the same website it works fine.

What is the reason for this 403 and wasn't the -I parameter supposed to hide the timings?

davecheney commented 2 years ago

There may be a bug with flag handling, I’ll take a look.

Semi serious question, this tool gives you http timing information. If you want to hide the timing data, why use this tool?

moorereason commented 2 years ago

It's your site restricting unknown user agents. Try: httpstat -H "User-Agent: curl/7.72.0" https://pieterhouwen.info

pieterhouwen commented 2 years ago

@davecheney I want to hide the timings because I just like the color output of httpstat and not really care about the timings. @moorereason Thanks for the tip, seems to be the case. Closing this issue.

davecheney commented 2 years ago

ok, let me figure out what's wrong with the -I flag.