11 include "helper/server.inc";
19 \[name\] \=\> client010\.php
20 \[type\] \=\> text\/plain
27 server("env.inc", function($port) use($RE) {
29 $request = new http\Client\Request("POST", "http://localhost:$port");
30 $request->getBody()->addForm(null, array("file"=>__FILE__, "name"=>"upload", "type"=>"text/plain"));
32 foreach (http\Client::getAvailableDrivers() as $driver) {
33 $client = new http\Client($driver);
34 $client->enqueue($request)->send();
35 if (!preg_match($RE, $s = $client->getResponse()->getBody()->toString())) {