Extracting HTTP headers from an HTTP response