This file contains hidden or 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
#!/usr/bin/env python3 | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import logging | |
import os | |
from datetime import datetime | |
class PostRequestWritingServer(HTTPServer): | |
_counter = 0 | |
class FileWritingPostRequestHandler(BaseHTTPRequestHandler): |
This file contains hidden or 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
/* w2lp.c | |
* | |
* 2017 by Lars Stockmann | |
* released in the public domain | |
*/ | |
#include <stdio.h> | |
#define PRE_PATH "/mnt/" |