Update HttpServer.java

Fixed some compiling errors. Need to instantiate the URLConnection but won't let us. Still need to figure out how to implement the headers.