reading path, method and headers