projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
prepare v3.2.1
[m6w6/ext-http]
/
tests
/
bug69313.phpt
diff --git
a/tests/bug69313.phpt
b/tests/bug69313.phpt
index 824918cb325fdb8055f4570ff3236262e0bb72c7..c84ef983261d39abcbc4765f42088f2fe117d555 100644
(file)
--- a/
tests/bug69313.phpt
+++ b/
tests/bug69313.phpt
@@
-2,13
+2,13
@@
Bug #69313 (http\Client doesn't send GET body)
--SKIPIF--
<?php
Bug #69313 (http\Client doesn't send GET body)
--SKIPIF--
<?php
-include "
./
skipif.inc";
+include "skipif.inc";
skip_client_test();
?>
--FILE--
<?php
skip_client_test();
?>
--FILE--
<?php
-
+include "helper/dump.inc";
include "helper/server.inc";
echo "Test\n";
include "helper/server.inc";
echo "Test\n";
@@
-20,7
+20,7
@@
server("proxy.inc", function($port, $stdin, $stdout, $stderr) {
$client = new http\Client();
$client->enqueue($request);
$client->send();
$client = new http\Client();
$client->enqueue($request);
$client->send();
-
echo $client->getResponse(
);
+
dump_message(null, $client->getResponse()
);
});
?>
});
?>
@@
-30,16
+30,17
@@
Done
Test
HTTP/1.1 200 OK
Accept-Ranges: bytes
Test
HTTP/1.1 200 OK
Accept-Ranges: bytes
+Content-Length: %d
Etag: "%s"
X-Original-Transfer-Encoding: chunked
Etag: "%s"
X-Original-Transfer-Encoding: chunked
-Content-Length: %d
+X-Request-Content-Length: 3
GET / HTTP/1.1
GET / HTTP/1.1
-User-Agent: %s
-Host: localhost:%d
Accept: */*
Accept: */*
-Content-Type: text/plain
Content-Length: 3
Content-Length: 3
+Content-Type: text/plain
+Host: localhost:%d
+User-Agent: %s
X-Original-Content-Length: 3
foo
X-Original-Content-Length: 3
foo