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.
- in the terminal:
firefox "https://somewebsite"
(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. - I want the "Copy as cURL" data, that the chromium has in the "network tab" of "Inspect Elements"
0 Answers