-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTEST-LOG
70 lines (62 loc) · 1.74 KB
/
TEST-LOG
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
DAY2
```
C:\Users\ruokeqx> curl -i 127.0.0.1:9999
HTTP/1.1 200 OK
Content-Type: text/html
Date: Tue, 17 May 2022 09:20:03 GMT
Content-Length: 18
<h1>Hello rin</h1>
C:\Users\ruokeqx> curl 127.0.0.1:9999/hello?name=ruokeqx
hello ruokeqx, you're at /hello
C:\Users\ruokeqx> curl 127.0.0.1:9999/login -X POST -d "username=ruokeqx&password=ruokeqx"
{"password":"ruokeqx","username":"ruokeqx"}
C:\Users\ruokeqx> curl 127.0.0.1:9999/login -X POST -d "username=ruokeqx&password=ruokeqx" -i
HTTP/1.1 200 OK
Content-Type: application/json
Date: Tue, 17 May 2022 09:22:01 GMT
Content-Length: 44
{"password":"ruokeqx","username":"ruokeqx"}
C:\Users\ruokeqx> curl 127.0.0.1:9999/xxx -i
HTTP/1.1 404 Not Found
Content-Type: text/plain
Date: Tue, 17 May 2022 09:22:15 GMT
Content-Length: 20
404 NOT FOUND: /xxx
```
DAY3
```
C:\Users\ruokeqx> curl 127.0.0.1:9999/hello/ruokeqx -i
HTTP/1.1 200 OK
Content-Type: text/plain
Date: Tue, 17 May 2022 10:09:31 GMT
Content-Length: 40
hello ruokeqx, you're at /hello/ruokeqx
C:\Users\ruokeqx> curl 127.0.0.1:9999/assets/images/ruokeqx.png
{"filepath":"images/ruokeqx.png"}
C:\Users\ruokeqx> curl 127.0.0.1:9999/assets/ruokeqx.png
{"filepath":"ruokeqx.png"}
C:\Users\ruokeqx>
```
DAY4
```
C:\Users\ruokeqx> curl 127.0.0.1:9999/v1/hello?name=ruokeqx
hello ruokeqx, you're at /v1/hello
C:\Users\ruokeqx> curl 127.0.0.1:9999/v2/hello/ruokeqx
hello ruokeqx, you're at /v2/hello/ruokeqx
```
DAY5
```
C:\Users\ruokeqx> curl 127.0.0.1:9999
<h1>Hello rin</h1>
C:\Users\ruokeqx> curl 127.0.0.1:9999/v2/hello/ruokeqx
{"message":"Internal Server Error"}
```
DAY6
```
C:\Users\ruokeqx> curl 127.0.0.1:9999/
Hello ruokeqx
C:\Users\ruokeqx> curl 127.0.0.1:9999/panic
{"message":"Internal Server Error"}
C:\Users\ruokeqx> curl 127.0.0.1:9999/
Hello ruokeqx
```