1--TEST--
2Use SEARCH as a HTTP verb
3--SKIPIF--
4<?php
5include "skipif.inc";
6?>
7--FILE--
8<?php
9include "php_cli_server.inc";
10php_cli_server_start('var_dump($_SERVER["REQUEST_METHOD"]);');
11
12$host = PHP_CLI_SERVER_HOSTNAME;
13$fp = php_cli_server_connect();
14
15if(fwrite($fp, <<<HEADER
16SEARCH / HTTP/1.1
17Host: {$host}
18
19
20HEADER
21)) {
22	while (!feof($fp)) {
23		echo fgets($fp);
24	}
25}
26
27?>
28--EXPECTF--
29HTTP/1.1 200 OK
30Host: %s
31Date: %s
32Connection: close
33X-Powered-By: PHP/%s
34Content-type: text/html; charset=UTF-8
35
36string(6) "SEARCH"
37