Here is the code I am using:
$content = file_get_contents('https://professor-oak.com/CardOrders/ItemDetails.asp?IID=6837');
echo $content;
I have been using this code for about two years now and it just stopped working. I need help to know how to get it working again.
I have tried using urlencode. -no help. I tried switching cURL. - no help. I tried cURL sumilating a broswer. -no help.
I have used the following for reference:
php curl: how can i emulate a get request exactly like a web browser?
Can a cURL based HTTP request imitate a browser based request completely?
PHP file_get_contents() returns "failed to open stream: HTTP request failed!"
I also used
to check for robots.txt
.
Please help.