我有2个站点
网站“ A”通过以下请求与网站“ B”对话:
$options = [
'http' => [
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'timeout' => 20,
'content' => http_build_query($params['data']),
]
];
$context = stream_context_create($options);
$result = file_get_contents($params['url'], false, $context);
在站点“ B”中识别出要调用的URL(域)吗?
我检查了数组$ _SERVER,但没有看到站点“ A”的任何地址