Magento 2 Check if url returns 404
I have ann Array of urls $arr = Array( ‘http://magento2.com/url-exist’, ‘http://magento2.com/url-does-not-exist’, ‘http://magento2.com/url-does-not-exist’, ‘http://magento2.com/url-exist’); I’ve tried curl, get_headers they all failed output is wrong: <a href=”http://magento2.com/url-exist” >Link-1</a> <a href=”http://magento2.com/url-does-not-exist” >Link-2</a> <a href=”http://magento2.com/url-does-not-exist” >Link-3</a> <a href=”http://magento2.com/url-exist” >Link-4</a> It should return only url… Read More »Magento 2 Check if url returns 404