Relative path requests crawled by the PhantomJS plug-in will be transferred locally

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();
Oct.10,2021

QueryList-AbsoluteUrl plug-in
converts the URL relative path to the absolute path.
GitHub: https://github.com/jae-jae/Qu.

this problem occurs in ordinary calling methods;
or customize a complex request with:
:

set_time_limit(0);
$ql = QueryList::getInstance();
// PhantomJS
// $ql->use(PhantomJs::class,'/usr/local/bin/phantomjs');
// or Custom function name
$ql->use(PhantomJs::class,'D:\phantomjs2.1.1\bin\phantomjs.exe','browser');
$data = $ql->browser(function(\JonnyW\PhantomJs\Http\RequestInterface $r){
    $r->setMethod( 'GET');
    $r->setUrl('https://lnovel.cc/read/92689.html');
    $r->setTimeout(10000); // 10 seconds
    $r->setDelay(3); // 3 seconds
    return$r;
})->find('p')->texts();
print_r($data->all());
Menu