-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathhttp_1.php
executable file
·59 lines (57 loc) · 1.11 KB
/
http_1.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/*
* http.php
*
*/
if (isset($_GET['OK'])) {
$method = $_GET['method'];
$url = $_GET['url'];
switch ($method) {
case "GET":
$header = "GET " . $url . " HTTP/1.1";
}
header($header);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>HTTP</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="generator" content="Geany 0.16" />
</head>
<body>
<h1>HTTP Test</h1>
<form name="HTTP_Test" action=GET>
<table>
<tr>
<th>Method</th>
<td>
<select name="method">
<option>HEAD</option>
<option>GET</option>
<option>POST</option>
<option>PUT</option>
<option>DELETE</option>
<option>TRACE</option>
<option>OPTIONS</option>
<option>CONNECT</option>
</select>
</td>
</tr>
<tr>
<th>URL</th>
<td>
<input name="url" type=text size=60 maxlength=255 />
</td>
</tr>
<tr>
<td colspan=2>
<input type=submit name="OK" value="OK" />
</td>
</tr>
</table>
</form>
</body>
</html>