+
-
-
+
+
diff --git a/mEIM-Praktikum_Webentwicklung/Aufg1_Sockets_Client.py b/mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg1_Sockets_Client.py
similarity index 100%
rename from mEIM-Praktikum_Webentwicklung/Aufg1_Sockets_Client.py
rename to mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg1_Sockets_Client.py
diff --git a/mEIM-Praktikum_Webentwicklung/Aufg1_Sockets_Server.py b/mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg1_Sockets_Server.py
similarity index 100%
rename from mEIM-Praktikum_Webentwicklung/Aufg1_Sockets_Server.py
rename to mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg1_Sockets_Server.py
diff --git a/mEIM-Praktikum_Webentwicklung/Aufg2_Sockets_Client.py b/mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg2_Sockets_Client.py
similarity index 100%
rename from mEIM-Praktikum_Webentwicklung/Aufg2_Sockets_Client.py
rename to mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg2_Sockets_Client.py
diff --git a/mEIM-Praktikum_Webentwicklung/Aufg2_Sockets_Server.py b/mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg2_Sockets_Server.py
similarity index 100%
rename from mEIM-Praktikum_Webentwicklung/Aufg2_Sockets_Server.py
rename to mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg2_Sockets_Server.py
diff --git a/mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg3_YingUndYang_Server.py b/mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg3_YingUndYang_Server.py
new file mode 100644
index 0000000..892baec
--- /dev/null
+++ b/mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg3_YingUndYang_Server.py
@@ -0,0 +1,57 @@
+import http.server
+import urllib.parse
+
+class MyOwnHandler(http.server.BaseHTTPRequestHandler):
+
+ def do_GET(self):
+ self.send_response(200)
+ self.end_headers()
+ parsed = urllib.parse.urlparse(self.path)
+ print("Geparsed wurde: ", parsed)
+
+ myOwnPath = parsed.path
+ print("Variable myOwnath ist :", myOwnPath)
+
+ nameOfMyOwnPath = myOwnPath[1:4].upper() #schneidet "/" am Anfang ab und verwandelt "yang" zu "YANG" bzw "ying" zu "YING, damit Titel des HTML-Files später "YANG_File" bzw "YING_File" ist
+ MyOwnQuery = parsed.query
+
+ msg_to_return = f"{nameOfMyOwnPath}_File"
+
+ if myOwnPath == "/Ying":
+ msg_to_return += "This is the Ying-page.
"
+ msg_to_return += f"You accessed path: {myOwnPath}
"
+ msg_to_return += 'Go to Yang-Page'
+ msg_to_return += ""
+
+ if myOwnPath == "/Yang":
+ msg_to_return += "This is the Yang-page.
"
+ msg_to_return += f"You accessed path: {myOwnPath}
"
+ msg_to_return += 'Go to Ying-Page'
+ msg_to_return += "