Save Response Body to file from curl request Save Response Body to file from curl request curl curl

Save Response Body to file from curl request


You could simply append the output to a file

curl ... >> output-file.html


From the curl docs:

-i, --include

(HTTP) Include the HTTP-header in the output. The HTTP-header includes things like server-name, date of the document, HTTP-version and more...

so remove the -i param

http://curl.haxx.se/docs/manpage.html