Вопрос

All the examples for node-http-proxy show a {target: <URL>} option, but I don't want to proxy to a single target. How do I set it up for outbound requests (to any URL)?

Это было полезно?

Решение

Since node-http-proxy seems to be a proxy for inbound connections to a server farm, and not for outbound connections to random websites, I found another tool instead:

http://newspaint.wordpress.com/2012/11/05/node-js-http-and-https-proxy/

This allows me to customize the requests and responses as needed.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top