davecheney / httpstat

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

Can't add extra headers #173

Closed erfanimani closed 9 months ago

erfanimani commented 9 months ago

I can't seem to use the -H flag, it shows "curl error: curl: option -H: requires parameter":

$ httpstat -H 'Name: value' https://example.com
> curl -w <output-format> -D <tempfile> -o <tempfile> -s -S Name: value https://example.com -H
curl error: curl: option -H: requires parameter
curl: try 'curl --help' or 'curl --manual' for more information
davecheney commented 9 months ago

Thanks for raising this issue. I can't see why curl wold be involved in the output of running httpstat. Is it possible someone has aliased httpstat to curl, or you've installed https://github.com/reorx/httpstat?

erfanimani commented 9 months ago

Oops, yes. Sorry!