A custom created HTTP header whose value I need to fetch and for this, I am using following WordPress function
$response = wp_remote_get('http://example.com/page/');
$auth = wp_remote_retrieve_header( $response, 'Cache-Control' ); //Calling http header value of name "cach-control"
In above code, I am fetching a value of "Cache-Control" which is a default HTTP header. I know WordPress supports only limited HTTP header. I found one plugin that allow us to use more HTTP headers. But even with this plugin, I can't fetch the value of the custom created header.
Is there any way in which I can get the value of custom header?