cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Curl with silent option is outputting data when it should not

From: <James.Youngman_at_sungard.com>
Date: Wed, 22 May 2013 13:56:56 +0000

Unfortunately this will also redirect some error output which I do want to see. I tried this using an invalid IP address and the ERROR 404 message was redirected to null. :-(

-----Original Message-----
From: Kamil Dudka [mailto:kdudka_at_redhat.com]
Sent: Wednesday, May 22, 2013 8:29 AM
To: Youngman, James
Cc: curl-users_at_cool.haxx.se
Subject: Re: Curl with silent option is outputting data when it should not

On Wednesday 22 May 2013 14:53:57 James.Youngman_at_sungard.com wrote:
> Curl is outputting this data even though the silent option is specified.
> How can I make curl silent? Here is the command and the resulting data.
>
> Command:
>
> curl.exe -s -S -u xxxx:xxxx -X POST -H "X-Atlassian-Token: nocheck" -F
> "file=@c:\logs\AIFDBScripts.zip<mailto:file=@c:\logs\AIFDBScripts.zip>"
> http://10.249.88.155/jira/rest/api/2/issue/SR-2320/attachments

Use the -o option of curl to redirect the output to a file. You can redirect the output to /dev/null on *nix systems in case you do not need it.

Kamil

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-05-22