Is there a way to add the url you are using in curl to the output file? I have a url string with a variable and each record set that is found, I want to include the url in the output file. URL example i am using is http://history/%5B1980-2012%5D/%5B1-12%5D/%5B1-31%5D.hist.htm
Share
If you add -i to your command you’ll get the HTTP headers in the output as well with “Location:” on the 2nd line being what you want.
For example, this command:
Generates this output in a file: