Good day. There is a page where there is no problem moving to it. The page opens. But it is worth asking it through curl - 404 answer. Everything is on the same server. If testing locally, there are no errors. But on the server a permanent error. The request itself:
$curl = curl_init('http://'.$_SERVER['HTTP_HOST'].'/parts/search/888'); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($curl); Which way to dig?
$_SERVER['HTTP_HOST']returns what you need. - Alex Chermenin