{"id":42593782,"url":"https://github.com/foxweb/pico","last_synced_at":"2026-01-28T23:35:16.883Z","repository":{"id":53174222,"uuid":"177877769","full_name":"foxweb/pico","owner":"foxweb","description":"This is a very simple HTTP server for Unix, using fork(). It's very easy to use.","archived":false,"fork":false,"pushed_at":"2021-04-06T16:19:34.000Z","size":572,"stargazers_count":84,"open_issues_count":10,"forks_count":23,"subscribers_count":5,"default_branch":"master","last_synced_at":"2023-04-13T13:08:39.039Z","etag":null,"topics":["c","demo","educational-project","html","http","http-server","linux","unix"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foxweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-26T22:25:18.000Z","updated_at":"2023-04-10T00:14:52.000Z","dependencies_parsed_at":"2022-09-14T09:42:27.975Z","dependency_job_id":null,"html_url":"https://github.com/foxweb/pico","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/foxweb/pico","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxweb%2Fpico","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxweb%2Fpico/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxweb%2Fpico/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxweb%2Fpico/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foxweb","download_url":"https://codeload.github.com/foxweb/pico/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxweb%2Fpico/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28855266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T22:56:21.783Z","status":"ssl_error","status_checked_at":"2026-01-28T22:56:00.861Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["c","demo","educational-project","html","http","http-server","linux","unix"],"created_at":"2026-01-28T23:35:16.828Z","updated_at":"2026-01-28T23:35:16.878Z","avatar_url":"https://github.com/foxweb.png","language":"C","readme":"# Pico HTTP Server in C\n\nThis is a very simple HTTP server for Unix, using `fork()`. It's very easy to use.\n\n## How to use\n\n1. Include header `httpd.h`.\n2. Write your route method, handling requests.\n3. Call `serve_forever(\"8000\")` to start serving on http://127.0.0.1:8000/.\n\nSee `main.c`, an interesting example.\n\nTo log stuff, use `fprintf(stderr, \"message\");`\n\nView `httpd.h` for more information.\n\n## Quick start\n\n1. Run `make`.\n2. Run `./server` or `./server [port]` (port = 8000 by default).\n3. Open http://localhost:8000/ or http://localhost:8000/test in browser to see request headers.\n\n## Testing and benchmarking\n\nI suggest using [Siege](https://github.com/JoeDog/siege) utility for testing and benchmarking the Pico HTTP server.\n\n```sh\n\u003e siege -i -f urls.txt\n```\n\n## Links\n\nReworked and refactored from \u003chttps://gist.github.com/laobubu/d6d0e9beb934b60b2e552c2d03e1409e\u003e.\n\nBased on \u003chttp://blog.abhijeetr.com/2010/04/very-simple-http-server-writen-in-c.html\u003e.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxweb%2Fpico","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxweb%2Fpico","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxweb%2Fpico/lists"}