curl --output append to a file (without >> redirection)

Viewed 2974

Is there a way for curl to append output to an existing file using --output/-o option without overwriting it? I cannot use redirection:

curl http://url >> file

Because I am using a return code from curl:

response="$(curl --write-out "%{http_code}" --silent --output file http://url)"
2 Answers
Related