ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
client.php
Go to the documentation of this file.
1<?php
2
13
14// Find the autoloader
16 __DIR__ . '/../vendor/autoload.php',
17 __DIR__ . '/../../../autoload.php',
18 __DIR__ . '/vendor/autoload.php',
19
20];
21
22foreach ($paths as $path) {
23 if (file_exists($path)) {
24 include $path;
25 break;
26 }
27}
28
29// Constructing the request.
30$request = new Request('GET', 'http://localhost/');
31
33//$client->addCurlSetting(CURLOPT_PROXY,'localhost:8888');
35
36echo "Response:\n";
37
38echo (string)$response;
$path
Definition: aliased.php:25
An exception for terminatinating execution or to throw for unit testing.
A rudimentary HTTP client.
Definition: Client.php:44
The Request class represents a single HTTP request.
Definition: Request.php:18
$paths
Definition: client.php:15
foreach($paths as $path) $request
Definition: client.php:30
$client
Definition: client.php:32
$response
Definition: client.php:34