reorder
[m6w6/ext-http] / tests / proxy001.phpt
diff --git a/tests/proxy001.phpt b/tests/proxy001.phpt
deleted file mode 100644 (file)
index c3a5905..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
---TEST--
-proxy - send proxy headers for a proxy request
---SKIPIF--
-<?php 
-include "skipif.inc";
-skip_client_test();
-?>
---FILE--
-<?php
-
-include "server.inc";
-
-echo "Test\n";
-
-server("proxy.inc", function($port, $stdin, $stdout, $stderr) {
-       echo "Server on port $port\n";
-       
-       $c = new http\Client;
-       $r = new http\Client\Request("GET", "http://www.example.com/");
-       $r->setOptions(array(
-                       "timeout" => 3,
-                       "proxytunnel" => true,
-                       "proxyheader" => array("Hello" => "there!"),
-                       "proxyhost" => "localhost",
-                       "proxyport" => $port,
-       ));
-       try {
-               $c->enqueue($r)->send();
-       } catch (Exception $e) {
-               echo $e;
-       }
-       echo $c->getResponse()->getBody();
-       unset($r, $client);
-});
-
-?>
-===DONE===
---EXPECTF--
-Test
-Server on port %d
-CONNECT www.example.com:80 HTTP/1.1
-Host: www.example.com:80
-User-Agent: PECL_HTTP/%s PHP/%s libcurl/%s
-Proxy-Connection: Keep-Alive
-Hello: there!
-Content-Length: 0
-===DONE===