Socks5/SSL with httpwebrequests

xGhost

Member
Joined
Feb 8, 2010
Messages
21
Programming Experience
1-3
I know how to handle proxies with httpwebrequests. But I haven't found it if it possible to use socks5 or socks4 in place of proxies on the client side?

Next to that could someone point me out a beginner example for using SSL with httpwebrequests (GETs & POSTs)(Async would rock).
 
.Net doesn't support socks protocols, you may be able to findd third-party libraries for this.

Streams come in many variants, but their usage and behaviour is pretty much the same. SslStream Class (System.Net.Security) is a stream object you simply wrap around the underlying stream, f.ex New SslStream(currentStream), and first call AuthenticateAsClient method if you're the client (or Begin-/End- for async) then operate as normal on this stream object as you would with the underlying stream. You should check out the documentation for the various members of this class, sadly the code samples seems lacking VB versions but the basic setup is should be clear.
 
Back
Top