added content-type and java 7 error handling to test http server