M BUZZ CRAZE NEWS
// general

How to get "Copy as cURL" in the terminal?

By David Jones

In the web browser, there is "Web Developer" mode aka "Inspect Elements, also there is 'Network' tab in the Developer Mode, for monitoring webpage loading time for each file. I can also copy the responded cURL headers with the menu called "Copy as cURL".

So with that cURL headers and cookies info, I can perfectly emulate the exact same situation on the other machine, so the host treats me as I am on the same machine and the same browser when I paste in the terminal with the copied curl command.

Now I wanted to make that job of dragging the mouse and click a few areas plus right-click to get that "Copy as cURL" clipboard data for the terminal uses. (the reason why 'Copy as cURL' features is there).

P.S. I'm not talking about -I or -i tags, I want the result cURL to call the same page result displayed. So the script uses it right away. "Copy as cURL" includes almost everything. but I could not find a way to do it in the terminal. Is there a way to get that same "Copy as cURL" copy? or is there an option with an executable Linux browser parameter to achieve that data?

EDIT: steps to reproduce my problem.

  1. in the terminal: firefox "" (or chromium web browser) then the GUI will open up the firefox with the website and loads all the page and has "copy as cURL" information.
  2. I want the "Copy as cURL" data, that the chromium has in the "network tab" of "Inspect Elements"
9 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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