Skip to content

Instantly share code, notes, and snippets.

View todmephis's full-sized avatar

Ivan Sanchez todmephis

  • MX
View GitHub Profile
@mdonkers
mdonkers / server.py
Last active November 25, 2024 11:34
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
@subfuzion
subfuzion / curl.md
Last active December 18, 2024 14:02
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.