relative path requests crawled by the PhantomJS plug-in will be transferred to local
as shown in the figure above, the absolute path can be rendered successfully, but the relative path becomes local
because the target website is encrypted by JS and cannot be seen
so please tell me how to set it not to become local, but to target the URL
.$client = Client::getInstance();
// PhantomJS
$client->getEngine()->setPath("/www/wwwroot/novel/phantomjs-2.1.1-linux-x86_64/bin/phantomjs");
$client->getEngine()->addOption("--load-images=true");
$client->getEngine()->addOption("--ignore-ssl-errors=true");
$client->getEngine()->addOption("--local-to-remote-url-access=true");
$request = $client->getMessageFactory()->createRequest();
$response = $client->getMessageFactory()->createResponse(); //
$request->setMethod("GET");
//
$request->setHeaders([
"User-Agent"=>"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Mobile Safari/537.36",
]);
$request->setUrl("https://xxxxx.xx/read/92689.html"); //
$client->send($request, $response);
var_dump($response);
//echo $response->getContent();