Skip to content

Instantly share code, notes, and snippets.

View jformacek's full-sized avatar

Jiri Formacek jformacek

View GitHub Profile
@jformacek
jformacek / HTTPServer.ps1
Created February 27, 2021 10:54 — forked from jakobii/HTTPServer.ps1
A Basic Powershell Webserver
# You Should be able to Copy and Paste this into a powershell terminal and it should just work.
# To end the loop you have to kill the powershell terminal. ctrl-c wont work :/
# Http Server
$http = [System.Net.HttpListener]::new()
# Hostname and port to listen on
$http.Prefixes.Add("http://localhost:8080/")