HTTP client saving download metadata

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












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?










share|improve this question



























    up vote
    0
    down vote

    favorite












    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?










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      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?










      share|improve this question















      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?







      ssl http download url file-metadata






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 13 at 8:43

























      asked Aug 13 at 8:23









      aef

      297414




      297414




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













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


          Read 'man curl' for options.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f462242%2fhttp-client-saving-download-metadata%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote













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


            Read 'man curl' for options.






            share|improve this answer
























              up vote
              1
              down vote













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


              Read 'man curl' for options.






              share|improve this answer






















                up vote
                1
                down vote










                up vote
                1
                down vote









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


                Read 'man curl' for options.






                share|improve this answer












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


                Read 'man curl' for options.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 13 at 8:31









                user1133275

                2,277412




                2,277412



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f462242%2fhttp-client-saving-download-metadata%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)