Updated WebRequest to use log4j instead of System.out.