brenden / node-webshot

Easy website screenshots in Node.js
2.12k stars 286 forks source link

Add support for proxy #71

Open Pampattitude opened 10 years ago

Pampattitude commented 10 years ago

Hey there!

Proxy support seems to be missing from the library. Do you plan on adding it? It would be interesting for cache proxies and the likes, to avoid overusing bandwidth when doing multiple page screenshots.

Thanks!

liamjack commented 9 years ago

+1

OndraM commented 8 years ago

I guess you can use proxy right now. Just use http_proxy environment variable. Works fine with webshot-cli:

$ export http_proxy="http://proxy.foo.bar:8118"
$ ./node_modules/.bin/webshot http://url-behind-proxy/ output.png