merged parseHeader into getResponseHeaders, parse header to a two d array