summaryrefslogtreecommitdiff
path: root/md/writeup/basic_http_server.md
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2021-05-27 20:06:47 +0100
committerFreeArtMan <dos21h@gmail.com>2021-05-27 20:06:47 +0100
commite63ed8a651e5246f8698a9c1c3e540029710d0e9 (patch)
treecfd58d80345f17dc9f458bad88181811a89b3592 /md/writeup/basic_http_server.md
parent9b9586b559edb387af804c52d2b593b711ce98be (diff)
downloadmd-content-e63ed8a651e5246f8698a9c1c3e540029710d0e9.tar.gz
md-content-e63ed8a651e5246f8698a9c1c3e540029710d0e9.zip
Update 10 articles from html to md
Diffstat (limited to 'md/writeup/basic_http_server.md')
-rw-r--r--md/writeup/basic_http_server.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/md/writeup/basic_http_server.md b/md/writeup/basic_http_server.md
new file mode 100644
index 0000000..cd1b4de
--- /dev/null
+++ b/md/writeup/basic_http_server.md
@@ -0,0 +1,30 @@
+title:Basic HTTP server
+keywords:c,http,server
+
+# Basic HTTP server
+Basic HTTP server. When you type url it shows listing of your local directory. If you tipe with path to file name noting hapens
+Use:
+```
+http://*.*.*.*:<port>/ -> disk start directory
+http://*.*.*.*:<port>/home/ -> home directory
+```
+Run:
+```
+./server [port]
+```
+
+Compile:
+```
+gcc server.c -o server
+```
+
+Here is also python source. It runs on port:8081 and prints in terminal HTTP request. You can see what browser sends to server.
+
+## Downloads
+servpy.zip -
+1KiB - http://archive.main.lv/files/writeup/basic_http_server/servpy.zip
+serverc.zip -
+2KiB - http://archive.main.lv/files/writeup/basic_http_server/serverc.zip
+
+
+