Skip to content

Instantly share code, notes, and snippets.

View mattgruter's full-sized avatar

Matthias Grüter mattgruter

  • Stockholm, Sweden
  • 10:11 (UTC +02:00)
View GitHub Profile
@fxsjy
fxsjy / SimpleAuthServer.py
Created April 26, 2013 06:23
SimpleAuthServer: A SimpleHTTPServer with authentication
import BaseHTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
import sys
import base64
key = ""
class AuthHandler(SimpleHTTPRequestHandler):
''' Main class to present webpages and authentication. '''
def do_HEAD(self):