{"id":22411037,"url":"https://github.com/dynstat/simplest-http-server-py","last_synced_at":"2025-07-19T15:06:17.335Z","repository":{"id":229277405,"uuid":"776286120","full_name":"dynstat/simplest-http-server-Py","owner":"dynstat","description":"This project is a simple Python-based HTTP server that serves a static web page with CSS and JavaScript, supporting HTTP GET requests and basic CORS.","archived":false,"fork":false,"pushed_at":"2024-04-27T20:27:24.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T02:46:10.624Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dynstat.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-23T04:46:53.000Z","updated_at":"2024-04-27T20:27:28.000Z","dependencies_parsed_at":"2024-03-23T07:38:09.143Z","dependency_job_id":"472c7bf4-6ba0-4a9e-8c91-168b61ef7e56","html_url":"https://github.com/dynstat/simplest-http-server-Py","commit_stats":null,"previous_names":["dynstat/simplest-http-server-py"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dynstat/simplest-http-server-Py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynstat%2Fsimplest-http-server-Py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynstat%2Fsimplest-http-server-Py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynstat%2Fsimplest-http-server-Py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynstat%2Fsimplest-http-server-Py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dynstat","download_url":"https://codeload.github.com/dynstat/simplest-http-server-Py/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynstat%2Fsimplest-http-server-Py/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265950835,"owners_count":23853842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-05T13:12:50.192Z","updated_at":"2025-07-19T15:06:17.299Z","avatar_url":"https://github.com/dynstat.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"***Note:** Just for learning purposes, not intended or safe to be used for real web applications.*\n\n# Simple HTTP Server in Python\n\nThis repository contains a basic implementation of an HTTP server using Python's socket programming. The server is just capable of handling HTTP GET requests and responding with a simple HTML page. Additionally, it includes basic CORS (Cross-Origin Resource Sharing) support to allow requests from different origins.\n\n## Features\n\n- **HTTP GET Request Handling:** The server processes HTTP GET requests and returns a predefined HTML response, including CSS and JavaScript files.\n- **Interactive Web Page:** Includes a simple interactive web page with a click counter, demonstrating how to serve static files (HTML, CSS, JavaScript) and handle user interactions.\n- **CORS Support:** Implements basic CORS headers to allow cross-origin requests.\n- **Connection Handling:** Manages client connections, receiving requests, and sending responses using Python's low-level socket API.\n\n\n## Getting Started\n\n### Prerequisites\n\n- Python 3.x installed on your machine.\n\n### Running the Server\n\n1. Windows OS\n  \n\n```powershell\npython httpserver.py\n```\n\n2. Linux or Mac\n  \n\n```bash\npython3 httpserver.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynstat%2Fsimplest-http-server-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdynstat%2Fsimplest-http-server-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynstat%2Fsimplest-http-server-py/lists"}