-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex3.html
151 lines (139 loc) · 3.63 KB
/
index3.html
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Webserv</title>
</head>
<body>
<!-- title -->
<div class="indexContainer">
<h1>Welcome to ftinx server!</h1>
<img src="imgs/favicon.jpg" height="100px" />
<p>made by holee jwon yechoi</p>
</div>
<br>
<!-- form -->
<form
action="http://localhost:8080/auth"
accept-charset="utf-8"
method="post"
class="signupForm"
name="signupForm"
autocomplete="off"
enctype="application/x-www-form-urlencoded"
>
<h2>Sign Up</h2>
<input type="hidden" name="formType" value="login">
<ul class="noBullet" name="noBullet">
<li>
<label for="username"></label>
<input type="text" class="inputFields" name="username" placeholder="Username"/>
</li>
<li>
<label for="password"></label>
<input type="password" class="inputFields" name="password" placeholder="Password"/>
</li>
</ul>
</form>
<!-- button -->
<div class="bt2Container" onclick="login42()">
<a>
<span></span>
<span></span>
<span></span>
<span></span>
Post 요청 보내기
</a>
</div>
<!-- TRACE -->
<div class="indexContainer">
<h1>Trace</h1>
<p>curl -v -X TRACE 127.0.0.1:8080</p>
</div>
<!-- CGI -->
<form
action="http://localhost:8080/cgi-bin/cgi_tester"
accept-charset="utf-8"
method="post"
class="signupForm"
name="cgisignupForm"
autocomplete="off"
enctype="application/x-www-form-urlencoded"
>
<h2>CGI Sign Up</h2>
<input type="hidden" name="formType" value="login">
<ul class="noBullet" name="noBullet">
<li>
<label for="username"></label>
<input type="text" class="inputFields" name="username" placeholder="Username"/>
</li>
<li>
<label for="password"></label>
<input type="password" class="inputFields" name="password" placeholder="Password"/>
</li>
</ul>
</form>
<!-- CGI button -->
<div class="bt2Container" onclick="cgilogin42()">
<a>
<span></span>
<span></span>
<span></span>
<span></span>
CGI 요청 보내기
</a>
</div>
<!-- __GET__ Accept-Language: ko -->
<div class="indexContainer">
<h1> Check List </h1>
</div>
<div class="bt2Container" onclick="getResponse('get_accept_language_ko', 'GET', '/', {'Accept-Language': 'ko'});">
<button>
GET 요청 보내기
</button>
</div>
<div class="bt2Container" onclick="removeText('get_accept_language_ko')">
<button>
Remove
</button>
</div>
<div class="indexContainer">
<h1> __GET__ Accept-Language: ko </h1>
<p id="get_accept_language_ko"></p>
</div>
<!-- __GET__ Accept-Language: en -->
<div class="bt2Container" onclick="getResponse('get_accept_language_en', 'GET', '/', {'Accept-Language': 'en'});">
<button>
GET 요청 보내기
</button>
</div>
<div class="bt2Container" onclick="removeText('get_accept_language_en')">
<button>
Remove
</button>
</div>
<div class="indexContainer">
<h1> __GET__ Accept-Language: en </h1>
<p id="get_accept_language_en"></p>
</div>
<!-- __POST__ Content-Type: en -->
<div class="bt2Container" onclick="postResponse('post_directory_youpiBanane_aa_bla', 'POST', '/directory/youpi.bla', {'Accept-Language': 'en',}, 'aaaaa');">
<button>
POST 요청 보내기
</button>
</div>
<div class="bt2Container" onclick="removeText('post_directory_youpiBanane_aa_bla')">
<button>
Remove
</button>
</div>
<div class="indexContainer">
<h1> __POST__ /directory/youpi.bla </h1>
<p id="post_directory_youpiBanane_aa_bla"></p>
</div>
<script type="text/javascript" src="script.js"></script>
</body>
</html>