<?php
echo "Test\n";
-$request = new http\Client\Request("POST", "http://dev.iworks.at/ext-http/.print_request.php");
-$request->getBody()->addForm(null, array("file"=>__FILE__, "name"=>"upload", "type"=>"text/plain"));
-
-foreach (http\Client::getAvailableDrivers() as $driver) {
- $client = new http\Client($driver);
- $client->enqueue($request)->send();
- var_dump($client->getResponse()->getBody()->toString());
-}
-?>
-Done
---EXPECTREGEX--
-Test
-(?:string\(\d+\) "Array
+$RE =
+'/(Array
\(
\[upload\] \=\> Array
\(
\[name\] \=\> client010\.php
\[type\] \=\> text\/plain
- \[tmp_name\] \=\> .*
+ \[tmp_name\] \=\> .+
\[error\] \=\> 0
\[size\] \=\> \d+
\)
\)
-"
-)+Done
+)+/';
+$request = new http\Client\Request("POST", "http://dev.iworks.at/ext-http/.print_request.php");
+$request->getBody()->addForm(null, array("file"=>__FILE__, "name"=>"upload", "type"=>"text/plain"));
+
+foreach (http\Client::getAvailableDrivers() as $driver) {
+ $client = new http\Client($driver);
+ $client->enqueue($request)->send();
+ if (!preg_match($RE, $s = $client->getResponse()->getBody()->toString())) {
+ echo($s);
+ }
+}
+?>
+Done
+--EXPECT--
+Test
+Done
\ No newline at end of file
$body = new http\Message\Body;
$body->append("Hello, my old fellow.");
foreach (hash_algos() as $algo) {
- if ($algo == "gost-crypto") continue;
+ switch ($algo) {
+ case "gost-crypto":
+ case "fnv1a32":
+ case "fnv1a64":
+ continue 2;
+ }
ini_set("http.etag.mode", $algo);
printf("%10s: %s\n",
$algo,