title: Can I write a Java loader class that will hook HTTP requests in the loaded class?
body: <p>I have a class that I want to hook and redirect HTTP requests in.
  I also have a loader class already written, but all it does it replace the functions that contain the HTTP requests I want to change.
  Is there a way to hook HTTP requests in Java so that I can redirect them all more easily?
  Sort of like a proxy-wrapper.</p>
  
  <p>Clarification:
  The app sends out a GET or POST request to a URL.
  I need the content to remain the same, just change the URL.
  DNS redirects won't work, the Host HTTP header needs to be correct for the new server.</p>
  
  <p>PS: This is a Desktop App, not a server script.</p>