php - can't able to fetch meta tag for particular url
I am using php script for fetch the keywords from meta tag for the particular website. but for some URL it is not working, when i manually check the keywords for that URL then i found that keywords are exist in the web page.
$url = "https://www.washingtonpost.com/news/education/wp/2018/02/14/school-shooting-reported-at-florida-high-school/?tid=pm_pop"; get_meta_tags($url);
It always give me warning:-
Warning: get_meta_tags(https://www.washingtonpost.com/politics/stormy-danielss-tale-gains-renewed-momentum-with-trump-lawyers-claim-which-raises-new-questions/2018/02/14/e7ce4a16-119d-11e8-9065-e55346f6de81_story.html?tid=pm_pop): failed to open stream: Redirection limit reached