when I copy and paste the following url in the address bar, it opens the page correctly:
https://www.lacourt.org/casesummary/ui/casesummary.aspx?CaseNumber=BC510457
but the following code returns a case not found message from the site when I run it on localhost:
<?php
$url = 'https://www.lacourt.org/casesummary/ui/casesummary.aspx?CaseNumber=BC510457';
echo file_get_contents($url);
?>
Why is file_get_contents not returning the same page as when I type the url directly in the address bar? Any suggestions?
Thank you.