Is there a way to redirect CURL output in Firefox?

I have a bunch of requests in my application, I know that they return html. So, is there a way to redirect CURL output to my browser so that it displays its contents?

curl MY_URL -d "my data" | firefox

An example that may work, but does not actually work with the channel (as indicated above).

Do you know which way to do this?

+5
source share
3 answers

The following command worked for me using Cygwin (works under Win7) and Ubuntu 14.04.2:

 curl http://www.rosstronics.biz | firefox "data:text/html;base64,$(base64 -w 0 <&0)" 
+4
source

Connect it to node, write a script to read stdin and disable it.

0
source

I found that an easy way to do this is to put the output in an html file and double-click the file to open it in a browser. Each time you run a query, just refresh your browser and it will display the new changes.

so "curl [data and options] > response.html" , then double-click html

0
source

All Articles