How can I curl about:cache in firefox?

1

In firefox, I can go to about:cache and display all entries that are written to disk. I need the HTML source code of that page, but from terminal.

I am thinking of something like:

curl about:cache?storage=disk&context=

but that obviously does not work, because curl can't resolve the host. Is there another way to get the source of that page, without clicking through firefox? I can open it on terminal in a new firefox instance with

firefox view-source:about:cache?storage=disk&context=

but I don't know how to "download" it.

Thanks!

SimpleUser

Posted 2017-01-02T21:06:01.537

Reputation: 11

1

try https://github.com/abiyani/automate-save-page-as

– Ipor Sircer – 2017-01-02T23:53:09.800

Answers

0

You won't be able to get that info from the command line, the page is generated internally by Firefox.

The best you can do is load it in Firefox and the right-click then save-as

hardillb

Posted 2017-01-02T21:06:01.537

Reputation: 390

You're right that curl cannot do it. But I can imagine that tools such as http://www.seleniumhq.org can get it done.

– Arjan – 2017-01-03T18:17:59.257