added getBytes to HTTP