<?php require 'vendor/autoload.php'; // Create a client with a base URI $client = new \GuzzleHttp\Client(['base_uri' => 'https://rbt5.namnguyen68.repl.co']); // Send a request $response = $client->request('GET', 'html/begin'); $body = $response->getBody(); echo $body; // Send a request $response = $client->request('GET', 'title/a'); $body = $response->getBody(); echo $body; // Send a request $response = $client->request('GET', 'body/begin'); $body = $response->getBody(); echo $body; ?> <?php // Create a client with a base URI $client = new \GuzzleHttp\Client(['base_uri' => 'https://rbt5.namnguyen68.repl.co']); // Send a request $response = $client->request('GET', 'html/end'); $body = $response->getBody(); echo $body; ?>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter