X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2FHttpRequest_006.phpt;h=68c3ffecd84b420a478e2477f7d7a6a8709cb1e1;hb=ecec060bd65badb1139497b30b30cafd1161b50d;hp=e40884b9b9052b54447ddc39c7d34b2fa145353f;hpb=28676404f30a0814a8e027d63b3cec4959475c46;p=m6w6%2Fext-http diff --git a/tests/HttpRequest_006.phpt b/tests/HttpRequest_006.phpt index e40884b..68c3ffe 100644 --- a/tests/HttpRequest_006.phpt +++ b/tests/HttpRequest_006.phpt @@ -12,7 +12,7 @@ echo "-TEST\n"; $r = new HttpRequest('http://dev.iworks.at/.print_request.php', HTTP_METH_POST); $r->setContentType('text/xml'); -$r->setRawPostData(xmlrpc_encode_request('testMethod', array('foo' => 'bar'))); +$r->setBody(xmlrpc_encode_request('testMethod', array('foo' => 'bar'))); var_dump($r->send()); var_dump($r->send()); var_dump($r->send()); @@ -24,20 +24,6 @@ echo "Done\n"; object(HttpMessage)#%d (%d) { ["type:protected"]=> int(2) - ["httpVersion:protected"]=> - float(1.1) - ["responseCode:protected"]=> - int(200) - ["responseStatus:protected"]=> - string(2) "OK" - ["requestMethod:protected"]=> - string(0) "" - ["requestUrl:protected"]=> - string(0) "" - ["headers:protected"]=> - array(6) { - %s - } ["body:protected"]=> string(309) "string(294) " @@ -59,26 +45,26 @@ object(HttpMessage)#%d (%d) { " " - ["parentMessage:protected"]=> - NULL -} -object(HttpMessage)#%d (%d) { - ["type:protected"]=> - int(2) - ["httpVersion:protected"]=> - float(1.1) - ["responseCode:protected"]=> - int(200) - ["responseStatus:protected"]=> - string(2) "OK" ["requestMethod:protected"]=> string(0) "" ["requestUrl:protected"]=> string(0) "" + ["responseStatus:protected"]=> + string(2) "OK" + ["responseCode:protected"]=> + int(200) + ["httpVersion:protected"]=> + float(1.1) ["headers:protected"]=> array(6) { %s } + ["parentMessage:protected"]=> + NULL +} +object(HttpMessage)#%d (%d) { + ["type:protected"]=> + int(2) ["body:protected"]=> string(309) "string(294) " @@ -100,26 +86,26 @@ object(HttpMessage)#%d (%d) { " " - ["parentMessage:protected"]=> - NULL -} -object(HttpMessage)#%d (%d) { - ["type:protected"]=> - int(2) - ["httpVersion:protected"]=> - float(1.1) - ["responseCode:protected"]=> - int(200) - ["responseStatus:protected"]=> - string(2) "OK" ["requestMethod:protected"]=> string(0) "" ["requestUrl:protected"]=> string(0) "" + ["responseStatus:protected"]=> + string(2) "OK" + ["responseCode:protected"]=> + int(200) + ["httpVersion:protected"]=> + float(1.1) ["headers:protected"]=> array(6) { %s } + ["parentMessage:protected"]=> + NULL +} +object(HttpMessage)#%d (%d) { + ["type:protected"]=> + int(2) ["body:protected"]=> string(309) "string(294) " @@ -141,6 +127,20 @@ object(HttpMessage)#%d (%d) { " " + ["requestMethod:protected"]=> + string(0) "" + ["requestUrl:protected"]=> + string(0) "" + ["responseStatus:protected"]=> + string(2) "OK" + ["responseCode:protected"]=> + int(200) + ["httpVersion:protected"]=> + float(1.1) + ["headers:protected"]=> + array(6) { + %s + } ["parentMessage:protected"]=> NULL }