Skip to content

Instantly share code, notes, and snippets.

View ntohidi's full-sized avatar
🎯
Focusing

Nasrin Tohidi ntohidi

🎯
Focusing
View GitHub Profile
@ntohidi
ntohidi / server.py
Created October 18, 2021 05:10 — forked from dragermrb/server.py
Python 3 HTTP Server with Basic Authentication
import http.server
import cgi
import base64
import json
from urllib.parse import urlparse, parse_qs
class CustomServerHandler(http.server.BaseHTTPRequestHandler):
def do_HEAD(self):