title: implementing proxy support in C, is there any library for that?
body: <p>I want to implement proxy support (SOCKS5 and HTTP CONNECT method) in my application. There are two parts that needs to be implemented:</p>
  
  <ol>
  <li>Detection of proxy details (protocol, host, port): I am using <a href="http://code.google.com/p/libproxy/" rel="nofollow noreferrer">libproxy</a> for that.</li>
  <li>Connecting to the the proxy server and telling it to relay the packets. Get the connected socket and then use it in your application.</li>
  </ol>
  
  <p>Is there library for the #2 part?</p>