Skip to content

nsavinda/simple-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

simple-http-server-python

Simple HTTP server with PHP support

Start Server

  • DEFAULT_HOST = "127.0.0.1"
  • DEFAULT_PORT = 2728
python server.py

Put your files to htdocs folder

About

  • Support for POST and GET requests
  • Supported POST request Content-Type:application/x-www-form-urlencoded
  • Supported response Content-Types: text/plain, jpeg, png, mp4

File Structure

├── htdocs/                        # Web site content
│   ├── index.php                  # Form
│   ├── add.php                    # Php code to add numbers
│   ├── image.jpg                  # Image
|   ├── form.html
|   ├── favicon.ico
|   ├── 1/
|   |   ├── add.php
|   |   ├── image.png
|   |   ├── index.php
|
├── server.py                      # Main File 

Tested on

  • Operating System: Arch Linux x86_64
  • Python Version: 3.11.5
  • PHP Version: 8.2.10
  • Other Tools:Postman, Brave-Browser, Mozilla Firefox

About

Simple HTTP server with PHP support

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy