I have a need to proxy outbound socket connections through a SOCKS proxy. 
 I've seen plenty of references to reverse proxy implementations in nodejs 
(for inbound connections to web servers for example), but very little 
information on proxying outbound connections.  However, I did find this bit 
of code which seems to do the initial SOCKS connection 
setup: https://gist.github.com/1827875  …I think I could use this in 
combination with http/s client requests if I could find a way to setup an 
http request on a pre-existing socket (rather than create a new socket or 
use an http.Agent connection pool).  So, is there a way to emit an 
http.ClientRequest on an existing socket and get the response?  I will need 
to so a similar thing with an SSL socket for HTTPS.

Or, am I missing something really basic?  The ability to establish 
connections over a SOCKS proxy seems like pretty basic networking 
functionality that should be readily available with nodejs (if not built 
into the core libraries).

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to