X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2FHttpRequest_007.phpt;h=f440c83d2776b7e6a7a7916bfeb7958edd9822c5;hb=378dd0f912b3139f1a797cf19e7c4eb88d33f141;hp=74ce5276744e5b081b7622e04fd7bd01720f4e9c;hpb=76ef3c1710bd22c560f9459f00452050d72f44db;p=m6w6%2Fext-http diff --git a/tests/HttpRequest_007.phpt b/tests/HttpRequest_007.phpt index 74ce527..f440c83 100644 --- a/tests/HttpRequest_007.phpt +++ b/tests/HttpRequest_007.phpt @@ -9,7 +9,7 @@ checkcls('HttpRequest'); recordHistory = true; $r->addHeaders(array('content-type' => 'text/plain')); $r->setPutFile(__FILE__); @@ -19,19 +19,18 @@ echo "Done\n"; ?> --EXPECTF-- %sTEST -string(%d) "HTTP/1.1 200 OK -Date: %s -Server: Apache/%s -X-Powered-By: PHP/5%s -Vary: Accept-Encoding -Content-Type: text/html -X-Original-Transfer-Encoding: chunked -Content-Length: 281 +string(%d) "PUT /ext-http/.print_put.php5 HTTP/1.1 +User-Agent: PECL::HTTP/%s +Host: dev.iworks.at +Accept: */* +Content-Type: text/plain +Content-Length: %d +Expect: 100-continue recordHistory = true; $r->addHeaders(array('content-type' => 'text/plain')); $r->setPutFile(__FILE__); @@ -40,18 +39,19 @@ var_dump($r->getHistory()->toString(true)); echo "Done\n"; ?> -PUT /.print_put.php5 HTTP/1.1 -User-Agent: PECL::HTTP/%s -Host: dev.iworks.at -Accept: */* -Content-Type: text/plain -Content-Length: 281 -Expect: 100-continue +HTTP/1.1 100 Continue +HTTP/1.1 200 OK +Date: %s +Server: %s +X-Powered-By: %s +Vary: Accept-Encoding +Content-Length: %d +Content-Type: text/html recordHistory = true; $r->addHeaders(array('content-type' => 'text/plain')); $r->setPutFile(__FILE__); @@ -62,4 +62,3 @@ echo "Done\n"; " Done -