send HTTP headers according to RFC