added -h
implemented http compression