Is it a SOCKS or HTTP proxy?
--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
If I understand forward HTTP proxies correctly - it requires the
CONNECT method open a tunnel?
Yes, but not all HTTP proxies support it (or have it locked down, you
can use it to e.g. tunnel SSH traffic). The simplest proxy call is
something like:
GET http://search.twitter.com/ HTTP/1.0
Host: search.twitter.com
So, the simple case should work. The tunneling, I think does not.
Have you read up on connect-proxy?
My copy from the Ubuntu repositories supports HTTP just fine. I'd
suggest you update yours but I think connect-proxy hasn't been updated
since 2006.
$ HTTP_PROXY_PASSWORD=password connect-proxy -H
us...@proxy.corp.com:8080 -p 1337 example.com 80
Alternatively, you could use proxychains. It's slightly more work to
set up but then you can just do:
$ proxychains /path/to/node application.js
And everything will transparently be proxied.