- made the silently failing message parser raise some errors
[m6w6/ext-http] / tests / HttpRequest_002.phpt
index ddb443425e259fdf8f9ce40a07274c701187bafc..5913f8c6abc62c80c0cf121eab178b12e3c355c8 100644 (file)
@@ -3,7 +3,7 @@ HttpRequest GET/POST
 --SKIPIF--
 <?php
 include 'skip.inc';
-checkver(5);
+checkmin(5);
 checkcls('HttpRequest');
 checkurl('www.google.com');
 checkurl('dev.iworks.at');
@@ -12,11 +12,11 @@ checkurl('dev.iworks.at');
 <?php
 echo "-TEST\n";
 
-$r = new HttpRequest('http://www.google.com', HTTP_GET);
+$r = new HttpRequest('http://www.google.com', HttpRequest::METH_GET);
 $r->send();
 print_r($r->getResponseInfo());
 
-$r = new HttpRequest('http://dev.iworks.at/.print_request.php', HTTP_POST);
+$r = new HttpRequest('http://dev.iworks.at/.print_request.php', HTTP_METH_POST);
 $r->addCookies(array('MyCookie' => 'foobar'));
 $r->addQueryData(array('gq'=>'foobar','gi'=>10));
 $r->addPostFields(array('pq'=>'foobar','pi'=>10));
@@ -33,7 +33,7 @@ Array
 (
     [effective_url] => http://www.google.com/
     [response_code] => %d
-    [http_connectcode] => %d
+    [connect_code] => %d
     [filetime] => %s
     [total_time] => %f
     [namelookup_time] => %f
@@ -49,11 +49,14 @@ Array
     [header_size] => %d
     [request_size] => %d
     [ssl_verifyresult] => %d
+    [ssl_engines] => Array%s
     [content_length_download] => %d
     [content_length_upload] => %d
     [content_type] => %s
     [httpauth_avail] => %d
     [proxyauth_avail] => %s
+    [num_connects] => %d
+    [cookies] => Array%s
 )
 Array
 (