[ 'method' => 'GET', 'timeout' => 6, 'ignore_errors' => true, 'header' => "User-Agent: MVLog-contact/1.0\r\n", ], ]); $response = @file_get_contents($url, false, $context); $status = 0; if (isset($http_response_header[0]) && preg_match('/\s(\d{3})\s/', $http_response_header[0], $m)) { $status = (int)$m[1]; } if ($response === false || $status !== 200) { http_response_code(502); echo json_encode(['error' => 'Captcha challenge unavailable']); exit; } echo $response;