-
FCPATH/Codeigniter/vendor/symfony/http-client/Response/TransportResponseTrait.php : 167 — Symfony\Component\HttpClient\Response\CurlResponse::perform ()
160 $hasActivity = false; 161 $timeoutMax = 0; 162 $timeoutMin = $timeout ?? \INF; 163 164 /** @var ClientState $multi */ 165 foreach ($runningResponses as $i => [$multi]) { 166 $responses = &$runningResponses[$i][1]; 167 self::perform($multi, $responses); 168 169 foreach ($responses as $j => $response) { 170 $timeoutMax = $timeout ?? max($timeoutMax, $response->timeout); 171 $timeoutMin = min($timeoutMin, $response->timeout, 1); 172 $chunk = false; 173 174 if ($fromLastTimeout && null !== $multi->lastTimeout) {
-
FCPATH/Codeigniter/vendor/symfony/http-client/Response/CommonResponseTrait.php : 143 — Symfony\Component\HttpClient\Response\CurlResponse::stream ()
136 { 137 if (null !== $response->getInfo('error')) { 138 throw new TransportException($response->getInfo('error')); 139 } 140 141 try { 142 if (($response->initializer)($response, -0.0)) { 143 foreach (self::stream([$response], -0.0) as $chunk) { 144 if ($chunk->isFirst()) { 145 break; 146 } 147 } 148 } 149 } catch (\Throwable $e) { 150 // Persist timeouts thrown during initialization
-
FCPATH/Codeigniter/vendor/symfony/http-client/Response/CommonResponseTrait.php : 41 — Symfony\Component\HttpClient\Response\CurlResponse::initialize ()
34 private $content; 35 private int $offset = 0; 36 private ?array $jsonData = null; 37 38 public function getContent(bool $throw = true): string 39 { 40 if ($this->initializer) { 41 self::initialize($this); 42 } 43 44 if ($throw) { 45 $this->checkStatusCode(); 46 } 47 48 if (null === $this->content) {
-
FCPATH/Codeigniter/vendor/symfony/http-client/Response/CurlResponse.php : 230 — Symfony\Component\HttpClient\Response\CurlResponse->doGetContent ()
223 224 public function getContent(bool $throw = true): string 225 { 226 $performing = $this->multi->performing; 227 $this->multi->performing = $performing || '_0' === curl_getinfo($this->handle, \CURLINFO_PRIVATE); 228 229 try { 230 return $this->doGetContent($throw); 231 } finally { 232 $this->multi->performing = $performing; 233 } 234 } 235 236 public function __destruct() 237 {
-
FCPATH/Codeigniter/vendor/symfony/browser-kit/HttpBrowser.php : 57 — Symfony\Component\HttpClient\Response\CurlResponse->getContent ()
50 51 $response = $this->client->request($request->getMethod(), $request->getUri(), [ 52 'headers' => array_merge($headers, $extraHeaders), 53 'body' => $body, 54 'max_redirects' => 0, 55 ]); 56 57 return new Response($response->getContent(false), $response->getStatusCode(), $response->getHeaders(false)); 58 } 59 60 /** 61 * @return array [$body, $headers] 62 */ 63 private function getBodyAndExtraHeaders(Request $request, array $headers): array 64 {
-
FCPATH/Codeigniter/vendor/symfony/browser-kit/AbstractBrowser.php : 403 — Symfony\Component\BrowserKit\HttpBrowser->doRequest ()
396 if (true === $changeHistory) { 397 $this->history->add($this->internalRequest); 398 } 399 400 if ($this->insulated) { 401 $this->response = $this->doRequestInProcess($this->request); 402 } else { 403 $this->response = $this->doRequest($this->request); 404 } 405 406 $this->internalResponse = $this->filterResponse($this->response); 407 408 $this->cookieJar->updateFromResponse($this->internalResponse, $uri); 409 410 $status = $this->internalResponse->getStatusCode();
-
APPPATH/Models/WikiModel.php : 16 — Symfony\Component\BrowserKit\AbstractBrowser->request ()
9 class WikiModel 10 { 11 public function scrapeData($url = '', $param = '') 12 { 13 $client = new Client(); 14 15 16 $crawler = $client->request('GET', $url); 17 18 if ($client->getResponse()->getStatusCode() == 200) { 19 // Anda dapat menyesuaikan elemen HTML yang ingin Anda scrape di sini 20 $titleNode = $crawler->filter('title')->html(); 21 $contentHtml = $crawler->filter('div#bodyContent ')->html(); 22 // $titleNode = str_replace('Wikipedia', 'Teknopedia', $titleNode); 23 $titleNode = str_replace(REPLACETITLE, ' ', $titleNode);
-
APPPATH/Controllers/Wiki.php : 36 — App\Models\WikiModel->scrapeData ()
29 public function view($link = '', $param = '') 30 { 31 // var_dump($link); 32 // Panggil model WikiModel 33 $model = new WikiModel(); 34 $url = URLWIKI . $link; 35 // Ambil data dari model berdasarkan link 36 $data = $model->scrapeData($url, $link); 37 38 $title = $data['title']; 39 40 41 42 return view('templates/header', ['title' => $title]) 43 // . view('templates/search')
-
SYSTEMPATH/CodeIgniter.php : 919 — App\Controllers\Wiki->view ()
912 protected function runController($class) 913 { 914 // This is a Web request or PHP CLI request 915 $params = $this->router->params(); 916 917 $output = method_exists($class, '_remap') 918 ? $class->_remap($this->method, ...$params) 919 : $class->{$this->method}(...$params); 920 921 $this->benchmark->stop('controller'); 922 923 return $output; 924 } 925 926 /**
-
SYSTEMPATH/CodeIgniter.php : 494 — CodeIgniter\CodeIgniter->runController ()
487 if (! method_exists($controller, '_remap') && ! is_callable([$controller, $this->method], false)) { 488 throw PageNotFoundException::forMethodNotFound($this->method); 489 } 490 491 // Is there a "post_controller_constructor" event? 492 Events::trigger('post_controller_constructor'); 493 494 $returned = $this->runController($controller); 495 } else { 496 $this->benchmark->stop('controller_constructor'); 497 $this->benchmark->stop('controller'); 498 } 499 500 // If $returned is a string, then the controller output something, 501 // probably a view, instead of echoing it directly. Send it along
-
SYSTEMPATH/CodeIgniter.php : 353 — CodeIgniter\CodeIgniter->handleRequest ()
346 347 $this->getRequestObject(); 348 $this->getResponseObject(); 349 350 $this->spoofRequestMethod(); 351 352 try { 353 $this->response = $this->handleRequest($routes, config(Cache::class), $returnResponse); 354 } catch (ResponsableInterface|DeprecatedRedirectException $e) { 355 $this->outputBufferingEnd(); 356 if ($e instanceof DeprecatedRedirectException) { 357 $e = new RedirectException($e->getMessage(), $e->getCode(), $e); 358 } 359 360 $this->response = $e->getResponse();
-
FCPATH/index.php : 81 — CodeIgniter\CodeIgniter->run ()
74 *--------------------------------------------------------------- 75 * LAUNCH THE APPLICATION 76 *--------------------------------------------------------------- 77 * Now that everything is set up, it's time to actually fire 78 * up the engines and make this app do its thang. 79 */ 80 81 $app->run(); 82 83 // Save Config Cache 84 // $factoriesCache->save('config'); 85 // ^^^ Uncomment this line if you want to use Config Caching. 86 87 // Exits the application, setting the exit code for CLI-based applications 88 // that might be watching.