Enhanced SOCKS5 Support

Enhanced SOCKS5 Support

Supports HTTP and HTTPS destinations and performs all hostname resolution via the SOCKS proxy, preventing privacy leakage if used with Tor.

Verified to work when the destination url uses an IP address instead of a hostname.
Hrm, and this isn't quite right anyway. For ipv4 or ipv6, the request does not include the length (since that's known). It's only included in the case of domain name, which is obviously variable in length. Am I reading http://www.faqs.org/rfcs/rfc1928.html incorrectly?