How to get value of custom http header?
I checked amazon.com website for retrive X-Amz-Cf-Id header which I belive is not a standard header and for me it is working fine: function wpse_288865_featch_header() { $response = wp_remote_get(‘https://www.amazon.com/’); $custom_header = wp_remote_retrieve_header($response, ‘X-Amz-Cf-Id’); var_dump($custom_header); exit; } add_action(‘init’, ‘wpse_288865_featch_header’); Sometimes amazon.com is not returning this header so please refresh your WordPress site couple of times. I … Read more