Home‎ > ‎unix/linux‎ > ‎

curl



Look at an encrypted page, and ignore if it is self signed (-k
curl -k https://10.50.64.23/status/
ok (02)

Grep on the output, (and you get nasty standard out spooge)
curl -k https://10.50.64.23/status/ | grep ok
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     8    0     8    0     0     67      0 --:--:-- --:--:-- --:--:--     0
ok (02)
 
To just get the grepped output, send the standard out to devnull
curl -k https://10.50.64.23/status/ 2>/dev/null | grep ok
ok (02)




Comments