@@ -16,11 +16,6 @@ does that exactly. But remember, data will always end as bytes.
16
16
So, everything can be processed by a computer as long as the
17
17
programmer can represent the data as bytes.
18
18
19
- This custom server only accepts GET request by browsers and
20
- you can further enhance it by adding implementation for other
21
- HTTP methods. And since this is a webserver, we want also to have
22
- port 80, but then again, you can easily change that in the main method.
23
-
24
19
Remember that both servers and
25
20
browsers can pass data to one another, but typically a browser will always
26
21
initiate the connection while the server is just always waiting for a connection.
@@ -37,6 +32,8 @@ a computer can only understand the presence or absence of an electrical pulse: t
37
32
is, again, represented as 0 and 1. For today, of course, typical users will hate seeing
38
33
0s and 1s so programmers do the abstraction.
39
34
35
+ This server is enabled for GET and POST methods. Please see the instructions.
36
+
40
37
## Q&A
41
38
42
39
If you have questions, please feel free to ask me:
@@ -77,6 +74,9 @@ have its own folder, then inside that folder is the default page
77
74
` index.html ` , then you can create subfolder, in my case,
78
75
` data ` and you can put files there to be serve by this webserver.
79
76
77
+ And there is the form sample to post. When you click ` add record ` ,
78
+ the data will be sent as POST.
79
+
80
80
## Contributing
81
81
82
82
1 . Fork it!
0 commit comments