You don't normally use a socket to communicate through a proxy, possibly
with the exception of some tunneling protocols (and even then I guess
most people wouldn't talk about using a socket). If it's not something
rather weird you are trying to do, you might want to have a look at the
WebRequest and WebProxy classes in MSDN.