Black Hat Python — Quick and Dirty HTTP Server

Ismail Akkila
1 min readDec 21, 2017

Sometimes, you need to spin up an HTTP server with minimal effort. Here is a simple method using SimpleHTTPServer:

This has one GET method that returns a “Hello World” html page:

127.0.0.1 - - [21/Dec/2017 19:38:26] "GET / HTTP/1.1" 200 -

It also has a POST method to allow posting some data which returns a “Success!” html page:

someField=someValue
127.0.0.1 - - [21/Dec/2017 19:37:34] "POST / HTTP/1.1" 200 -

Hope this helps someone!

--

--

Ismail Akkila

I live and breathe technology. Curious about programming, bitcoin and cybersecurity.