-4

I have a bug in my code.

My code is:

<?php $opts = array(

'http'=>array(

'method'=>"GET",

'max_redirects' => 100

));

$context = stream_context_create($opts);

$url = 'https://fr.socialclub.rockstargames.com/member/m1ssashleex/games/gtav/snapmatic/ajax/search?Filter=MostRecent&page=1';

$file = file_get_contents($url, false, $context);

$vresponse = json_decode($file);
?>
        <?php var_dump($vresponse); ?>  

I testing all solutions, but i don't have success

error:

Message: file_get_contents(https://fr.socialclub.rockstargames.com/member/m1ssashleex/games/gtav/snapmatic/ajax/search?Filter=MostRecent&page=1): failed to open stream: HTTP request failed! HTTP/1.1 429

1 Answers1

1

1) The error message says HTTP request failed! HTTP/1.1 429. 429 is the error code for too many requests. The server does not deliver the content cause you have exceeded the rate limit.

2) The page you want to get does not work if you are not logged in on that site.

sui
  • 751
  • 6
  • 10