I'm running the following code
<?php
echo file_get_contents('http://instagram.com/p/bivXzqRhDt');
?>
And it is causing the client browser (chrome) to perform an infinite auto-refresh to the same page, while not displaying any content. When changing the URL the code works, but I still see no sense on why would a file_get_contents refresh the current page, unless he has some sort of meta refresh (which he doesn't).
What can cause such an infinite refresh in the client side after file_get_contents / curl ?
Clue #1: When I'm looking at the network debug tab, I'm seeing the refresh is called with __a=1
.
Clue #2: When I'm not echoing the contents it also doesn't refresh.