vbauer / manet

Website screenshot service powered by Node.js, SlimerJS and PhantomJS
MIT License
576 stars 102 forks source link

Feature request to pass html content instead of url #81

Open hapheus opened 7 years ago

hapheus commented 7 years ago

I really like the rest api for phantom / slimer js, but I am missing an important feature. I want to pass the html content to render as parameter (already tried to use data:text/html;base64,PGgyPkhBTExPPC9oMj4= as url). Most of our Tests are executed on private networks, but manet runs on a public domain on heroku.

As a workaround we are using a proxy script that accepts the html content, creates a temporary world accessible file, passes the url of this file to manet, waits for the response, delete the temporary file and loops the response of manet.

Maybe this is a feature that more people are waiting for.

Thanks in advance.