I want to send the output of uptime
and df
commands to a web app using cURL. I tried:
uptime | curl http://someurl.com -T -
But that didn't seem to send the data.
What is the proper way to send the output of a command to cURL as a POST parameter? (or wget if that's much easier)
>
not a pipe|
? Also take a look atxargs
.--post-data=string
): gnu.org/software/wget/manual/wget.html#HTTP-Options-T
withhttp[s]://
uses PUT, not POST.