branch off v1 as R_1_7
[m6w6/ext-http] / tests / request_etag.phpt
1 --TEST--
2 request etag
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 skipif(!http_support(HTTP_SUPPORT_REQUESTS), "need request support");
7 ?>
8 --FILE--
9 <?php
10 echo "-TEST\n";
11 var_dump(http_get("http://dev.iworks.at/ext-http/etag", array("etag" => '"26ad3a-5-95eb19c0"')));
12 echo "Done\n";
13 ?>
14 --EXPECTF--
15 %aTEST
16 string(%d) "HTTP/1.1 304 Not Modified
17 Date: %a
18 Server: %a
19 ETag: "26ad3a-5-95eb19c0"
20 "
21 Done