0

I am looking for a way to download files from the Web, while saving download metadata, like the requested URI, the returned status code and maybe even TLS certificate information (server certificate details, negotiated algorithms for download session) alongside the file.

Ideally saving the metadata into the same file using extended attributes.

Is there a simple way to do such a thing?

1
curl -v "$URL" > $FILE 2> $FILE.meta

Read 'man curl' for options.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.