How to open cURL in Firefox or other web browser?











up vote
0
down vote

favorite












I have Firebug installed in Firefox. In the Net panel there are all network requests listed. When I right-click and choose Copy as cURL, how do I use this cURL?



How can I repeat my POST request data using cURL?



The copied cURL looks like this:



curl 'http://www.softwareishard.com/firebug/tips/resend/hello.php' -H 'Host: www.softwareishard.com' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:26.0) Gecko/20100101 Firefox/26.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Referer: http://www.softwareishard.com/firebug/tips/resend/resend.html' --data 'name=Bob'









share|improve this question




















  • 1




    What is your OS? *nix? copy/paste into your shell. Windows? You can recreate in Fiddler. Other? Just hit replay it in Firebug.
    – David Betz
    Feb 10 '16 at 16:26










  • How To Bypass CORS Errors On Chrome And Firefox For Testing if CORS is issue. Otherwise CORS equivalent is traditionally built in XHR, new way appears to be fetch api.
    – Ron Royston
    Dec 7 '16 at 0:14

















up vote
0
down vote

favorite












I have Firebug installed in Firefox. In the Net panel there are all network requests listed. When I right-click and choose Copy as cURL, how do I use this cURL?



How can I repeat my POST request data using cURL?



The copied cURL looks like this:



curl 'http://www.softwareishard.com/firebug/tips/resend/hello.php' -H 'Host: www.softwareishard.com' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:26.0) Gecko/20100101 Firefox/26.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Referer: http://www.softwareishard.com/firebug/tips/resend/resend.html' --data 'name=Bob'









share|improve this question




















  • 1




    What is your OS? *nix? copy/paste into your shell. Windows? You can recreate in Fiddler. Other? Just hit replay it in Firebug.
    – David Betz
    Feb 10 '16 at 16:26










  • How To Bypass CORS Errors On Chrome And Firefox For Testing if CORS is issue. Otherwise CORS equivalent is traditionally built in XHR, new way appears to be fetch api.
    – Ron Royston
    Dec 7 '16 at 0:14















up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have Firebug installed in Firefox. In the Net panel there are all network requests listed. When I right-click and choose Copy as cURL, how do I use this cURL?



How can I repeat my POST request data using cURL?



The copied cURL looks like this:



curl 'http://www.softwareishard.com/firebug/tips/resend/hello.php' -H 'Host: www.softwareishard.com' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:26.0) Gecko/20100101 Firefox/26.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Referer: http://www.softwareishard.com/firebug/tips/resend/resend.html' --data 'name=Bob'









share|improve this question















I have Firebug installed in Firefox. In the Net panel there are all network requests listed. When I right-click and choose Copy as cURL, how do I use this cURL?



How can I repeat my POST request data using cURL?



The copied cURL looks like this:



curl 'http://www.softwareishard.com/firebug/tips/resend/hello.php' -H 'Host: www.softwareishard.com' -H 'User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:26.0) Gecko/20100101 Firefox/26.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Referer: http://www.softwareishard.com/firebug/tips/resend/resend.html' --data 'name=Bob'






google-chrome firefox curl firebug






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 30 '16 at 16:40









Sebastian Zartner

4601412




4601412










asked Jan 30 '16 at 1:34









Patrioso

111




111








  • 1




    What is your OS? *nix? copy/paste into your shell. Windows? You can recreate in Fiddler. Other? Just hit replay it in Firebug.
    – David Betz
    Feb 10 '16 at 16:26










  • How To Bypass CORS Errors On Chrome And Firefox For Testing if CORS is issue. Otherwise CORS equivalent is traditionally built in XHR, new way appears to be fetch api.
    – Ron Royston
    Dec 7 '16 at 0:14
















  • 1




    What is your OS? *nix? copy/paste into your shell. Windows? You can recreate in Fiddler. Other? Just hit replay it in Firebug.
    – David Betz
    Feb 10 '16 at 16:26










  • How To Bypass CORS Errors On Chrome And Firefox For Testing if CORS is issue. Otherwise CORS equivalent is traditionally built in XHR, new way appears to be fetch api.
    – Ron Royston
    Dec 7 '16 at 0:14










1




1




What is your OS? *nix? copy/paste into your shell. Windows? You can recreate in Fiddler. Other? Just hit replay it in Firebug.
– David Betz
Feb 10 '16 at 16:26




What is your OS? *nix? copy/paste into your shell. Windows? You can recreate in Fiddler. Other? Just hit replay it in Firebug.
– David Betz
Feb 10 '16 at 16:26












How To Bypass CORS Errors On Chrome And Firefox For Testing if CORS is issue. Otherwise CORS equivalent is traditionally built in XHR, new way appears to be fetch api.
– Ron Royston
Dec 7 '16 at 0:14






How To Bypass CORS Errors On Chrome And Firefox For Testing if CORS is issue. Otherwise CORS equivalent is traditionally built in XHR, new way appears to be fetch api.
– Ron Royston
Dec 7 '16 at 0:14












1 Answer
1






active

oldest

votes

















up vote
0
down vote













cURL is not part of Firefox or Firebug, i.e. it cannot be executed there. As the Firebug wiki explains:




cURL is a command line tool for transferring data with URL syntax. Firebug's Copy As cURL command recreates the HTTP request (including HTTP headers and query string parameters) and copies it as a cURL command string to the clipboard.
The string can be pasted into a terminal window to execute the same request or for example pasted to a client that supports cURL.
In cases where the server serves compressed responses the preference extensions.firebug.net.curlAddCompressedArgument can be set to true and Firebug will add the --compressed argument to the generated command string.




It also refers to the cURL homepage.



What Firebug offers is to resend the right-clicked request via the Resend option within the context menu.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    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: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1033316%2fhow-to-open-curl-in-firefox-or-other-web-browser%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    cURL is not part of Firefox or Firebug, i.e. it cannot be executed there. As the Firebug wiki explains:




    cURL is a command line tool for transferring data with URL syntax. Firebug's Copy As cURL command recreates the HTTP request (including HTTP headers and query string parameters) and copies it as a cURL command string to the clipboard.
    The string can be pasted into a terminal window to execute the same request or for example pasted to a client that supports cURL.
    In cases where the server serves compressed responses the preference extensions.firebug.net.curlAddCompressedArgument can be set to true and Firebug will add the --compressed argument to the generated command string.




    It also refers to the cURL homepage.



    What Firebug offers is to resend the right-clicked request via the Resend option within the context menu.






    share|improve this answer



























      up vote
      0
      down vote













      cURL is not part of Firefox or Firebug, i.e. it cannot be executed there. As the Firebug wiki explains:




      cURL is a command line tool for transferring data with URL syntax. Firebug's Copy As cURL command recreates the HTTP request (including HTTP headers and query string parameters) and copies it as a cURL command string to the clipboard.
      The string can be pasted into a terminal window to execute the same request or for example pasted to a client that supports cURL.
      In cases where the server serves compressed responses the preference extensions.firebug.net.curlAddCompressedArgument can be set to true and Firebug will add the --compressed argument to the generated command string.




      It also refers to the cURL homepage.



      What Firebug offers is to resend the right-clicked request via the Resend option within the context menu.






      share|improve this answer

























        up vote
        0
        down vote










        up vote
        0
        down vote









        cURL is not part of Firefox or Firebug, i.e. it cannot be executed there. As the Firebug wiki explains:




        cURL is a command line tool for transferring data with URL syntax. Firebug's Copy As cURL command recreates the HTTP request (including HTTP headers and query string parameters) and copies it as a cURL command string to the clipboard.
        The string can be pasted into a terminal window to execute the same request or for example pasted to a client that supports cURL.
        In cases where the server serves compressed responses the preference extensions.firebug.net.curlAddCompressedArgument can be set to true and Firebug will add the --compressed argument to the generated command string.




        It also refers to the cURL homepage.



        What Firebug offers is to resend the right-clicked request via the Resend option within the context menu.






        share|improve this answer














        cURL is not part of Firefox or Firebug, i.e. it cannot be executed there. As the Firebug wiki explains:




        cURL is a command line tool for transferring data with URL syntax. Firebug's Copy As cURL command recreates the HTTP request (including HTTP headers and query string parameters) and copies it as a cURL command string to the clipboard.
        The string can be pasted into a terminal window to execute the same request or for example pasted to a client that supports cURL.
        In cases where the server serves compressed responses the preference extensions.firebug.net.curlAddCompressedArgument can be set to true and Firebug will add the --compressed argument to the generated command string.




        It also refers to the cURL homepage.



        What Firebug offers is to resend the right-clicked request via the Resend option within the context menu.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 30 '16 at 16:21

























        answered Jan 30 '16 at 16:16









        Sebastian Zartner

        4601412




        4601412






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1033316%2fhow-to-open-curl-in-firefox-or-other-web-browser%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Список кардиналов, возведённых папой римским Каликстом III

            Deduzione

            Mysql.sock missing - “Can't connect to local MySQL server through socket”