This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os,errno,shutil,glob,htmlmin,codecs; | |
# Delete in Background | |
def trmSilentDelete(filename): | |
try: | |
os.remove(filename) | |
except OSError as e: | |
if e.errno != errno.ENOENT: #No Raise Exception if no such file or directory | |
raise # Raise Exception other Error | |
# Replace Content in File With |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from http.server import SimpleHTTPRequestHandler | |
from socketserver import TCPServer | |
from urllib.parse import parse_qsl | |
from threading import Thread | |
#Choose how you want to Process the post data in this function | |
def processPostData(post=["No Post Data"]):#Print all post data | |
for field in post: | |
print(field) | |
class PostHandler(SimpleHTTPRequestHandler): | |
def do_POST(self): |