I've watched this command change repeatedly as you've been editing it to make it work.
This is a good example of why I didn't do this in the shell.
This is a good example of why I didn't do this in the shell.
In relation to your tool, I think curl provides very many more features that are easily accessible through command flags than the limited subset of HTTP capabilities you expose (for example, basic auth or different set of headers). The same argument goes for mailing, setting headers or such.
With that said, tools that does one thing and does it well are the ones that gets used, personally I'd just prefer it to be function in <your-shell> instead :)
You could replace echo with sendmail to do that. Sorry if my point came across as callous to you