Libproxy exists to answer the question: Given a network resource, how do I reach it? It handles all the details, enabling you to get back to programming.

WWW: https://libproxy.github.io/libproxy
