The Go package httpRelay provides an implementation of a HTTP relay proxy that listens for HTTP proxy requests and relays them to the specified SOCKS proxy server. More information can be found in the github repository.

Update Please make sure to use at least Go 1.4.3 or Go 1.5 (or later) when compiling this program to take advantage of the latest security-related fixes w.r.t. HTTP header processing.