I have a text document that contains a bunch of URLs in this format:
URL = "sitehere.com"
What I’m looking to do is to run curl -K myfile.txt, and get the output of the response cURL returns, into a file.
How can I do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Writes the first output received in the file you specify (overwrites if an old one exists).
Appends all output you receive to the specified file.
Note: The -K is optional.
If you are posting to a URL like https://example.org/?foo=1&baz=4
then you need to put double quotes around the URL: