summaryrefslogtreecommitdiffstats
path: root/bug69313.phpt
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-05-22 08:10:58 +0200
committerRemi Collet <fedora@famillecollet.com>2015-05-22 08:10:58 +0200
commit7bcbfb91a9e94b0336051ccf926d219489f5b800 (patch)
treee6afb3ca3f7bff794798729092b8f363b27d7be6 /bug69313.phpt
parent690f8f9a5a22e67c3fdf2cb6cf8cba30c29a748c (diff)
php-pecl-http: 2.5.0RC1
Diffstat (limited to 'bug69313.phpt')
-rw-r--r--bug69313.phpt46
1 files changed, 0 insertions, 46 deletions
diff --git a/bug69313.phpt b/bug69313.phpt
deleted file mode 100644
index 824918c..0000000
--- a/bug69313.phpt
+++ /dev/null
@@ -1,46 +0,0 @@
---TEST--
-Bug #69313 (http\Client doesn't send GET body)
---SKIPIF--
-<?php
-include "./skipif.inc";
-skip_client_test();
-?>
---FILE--
-<?php
-
-
-include "helper/server.inc";
-
-echo "Test\n";
-
-server("proxy.inc", function($port, $stdin, $stdout, $stderr) {
- $request = new http\Client\Request("GET", "http://localhost:$port/");
- $request->setHeader("Content-Type", "text/plain");
- $request->getBody()->append("foo");
- $client = new http\Client();
- $client->enqueue($request);
- $client->send();
- echo $client->getResponse();
-});
-
-?>
-
-Done
---EXPECTF--
-Test
-HTTP/1.1 200 OK
-Accept-Ranges: bytes
-Etag: "%s"
-X-Original-Transfer-Encoding: chunked
-Content-Length: %d
-
-GET / HTTP/1.1
-User-Agent: %s
-Host: localhost:%d
-Accept: */*
-Content-Type: text/plain
-Content-Length: 3
-X-Original-Content-Length: 3
-
-foo
-Done