implement https
handle some BS header fields