X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2FHttpRequest_007.phpt;h=2e9d48acbc247e2abd2afbb0319a1883e8f7fb0b;hp=74ce5276744e5b081b7622e04fd7bd01720f4e9c;hb=11e10af01b2125c59f7a91cee615c2431a1b7196;hpb=76ef3c1710bd22c560f9459f00452050d72f44db diff --git a/tests/HttpRequest_007.phpt b/tests/HttpRequest_007.phpt index 74ce527..2e9d48a 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__); @@ -18,20 +18,19 @@ var_dump($r->getHistory()->toString(true)); 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 +%aTEST +string(%d) "PUT /ext-http/.print_put.php5 HTTP/1.1 +User-Agent: PECL::HTTP/%a +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,18 @@ 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: %a +Server: %a +Vary: Accept-Encoding +Content-Length: %d +Content-Type: text/html recordHistory = true; $r->addHeaders(array('content-type' => 'text/plain')); $r->setPutFile(__FILE__); @@ -62,4 +61,3 @@ echo "Done\n"; " Done -