httpstat icon indicating copy to clipboard operation
httpstat copied to clipboard

httpstat returns 403, doesn't hide timings

Open pieterhouwen opened this issue 4 years ago • 4 comments

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?

pieterhouwen avatar Aug 30 '21 12:08 pieterhouwen

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?

davecheney avatar Aug 30 '21 21:08 davecheney

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

moorereason avatar Aug 30 '21 21:08 moorereason

@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.

pieterhouwen avatar Aug 30 '21 22:08 pieterhouwen

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

davecheney avatar Aug 30 '21 22:08 davecheney