How to Set java up to work with a proxy when making a HTTP request

I am writing a small app that makes HTTP requests and I need to have the option of setting it to work with a proxy server. I know there are 2 lines of code to do this but I cant for the life of me remember how to do it.
[233 byte] By [sirus21a] at [2007-10-3 11:45:28]
# 1
http://java.sun.com/j2se/1.5.0/docs/guide/net/proxies.html
sabre150a at 2007-7-15 14:17:49 > top of Java-index,Archived Forums,Socket Programming...