cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Wed, 22 May 2013 15:28:52 +0200

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