title: How to use an HTTP proxy in java
body: <p>I am writing a code that connects to websites and checks some code, like a crawler. But I need to connect trough a proxy and change the IP address (so it doesn't show the client's IP in the server logs). </p>
  
  <p>How can this be done through java? </p>