Mailing Lists
|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker Archives
[curl:bugs] #1231 7.26.0 Option --silent does not work with --head
From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Tue, 28 May 2013 08:16:47 +0000
This is not a bug.
--silent only silences curl's "extra" output. Data you ask for from a URL will still be output as usual. --head to a HTTP URL will thus output a HEAD response.
--- ** [bugs:#1231] 7.26.0 Option --silent does not work with --head** **Status:** pending-invalid **Created:** Tue May 28, 2013 05:50 AM UTC by Jari Aalto **Last Updated:** Tue May 28, 2013 05:50 AM UTC **Owner:** Daniel Stenberg In order to "run link checks" in scrips, it would be beneficial to use both of these options: curl --head --silent $URL || echo "FAIL: $URL" Unfortunately the --silent option does not suppress the HEAD output in 7.26.0. $ curl --head --silent http://www.google.com/ HTTP/1.1 302 Found Location: http://www.google.fi/ Cache-Control: private Content-Type: text/html; charset=UTF-8 ... Date: Tue, 28 May 2013 05:46:09 GMT Server: gws Content-Length: 218 X-XSS-Protection: 1; mode=block X-Frame-Options: SAMEORIGIN $ echo $? 0 --- Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/curl/bugs/1231/> To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/>Received on 2013-05-28 These mail archives are generated by hypermail. |
Page updated May 06, 2013.
web site info