{"id":16651611,"url":"https://github.com/den1al/request-mirror","last_synced_at":"2025-03-12T15:28:17.060Z","repository":{"id":82388472,"uuid":"204708946","full_name":"Den1al/request-mirror","owner":"Den1al","description":"A server that reflects the client's request data","archived":false,"fork":false,"pushed_at":"2019-08-28T13:01:24.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T08:42:51.298Z","etag":null,"topics":["http","mirror","proxy","research","security","server"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Den1al.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-27T13:25:59.000Z","updated_at":"2020-05-29T00:21:57.000Z","dependencies_parsed_at":"2023-06-25T23:36:06.403Z","dependency_job_id":null,"html_url":"https://github.com/Den1al/request-mirror","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Den1al%2Frequest-mirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Den1al%2Frequest-mirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Den1al%2Frequest-mirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Den1al%2Frequest-mirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Den1al","download_url":"https://codeload.github.com/Den1al/request-mirror/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243241647,"owners_count":20259622,"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":["http","mirror","proxy","research","security","server"],"created_at":"2024-10-12T09:25:53.873Z","updated_at":"2025-03-12T15:28:17.054Z","avatar_url":"https://github.com/Den1al.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# request-mirror\n\n## About\nA server that reflects the client's request data. This is very useful when you want to inspect the HTTP behaviour of a certain HTTP client. In example, when requesting a resource to this server using `curl` with the following command:\n\n```bash\n$ curl -d \"a:2\" http://localhost:1337/lala/dada\\?q\\=1 | jq\n```\n\nWe would get:\n\n```json\n{\n  \"meta\": {\n    \"method\": \"POST\",\n    \"path\": \"/lala/dada\",\n    \"version\": \"HTTP/1.1\"\n  },\n  \"data\": {\n    \"query\": \"q=1\",\n    \"body\": \"a:2\"\n  },\n  \"headers\": [\n    [\n      \"Host\",\n      \" localhost:1337\"\n    ],\n    [\n      \"User-Agent\",\n      \" curl/7.54.0\"\n    ],\n    [\n      \"Accept\",\n      \" */*\"\n    ],\n    [\n      \"Content-Length\",\n      \" 3\"\n    ],\n    [\n      \"Content-Type\",\n      \" application/x-www-form-urlencoded\"\n    ]\n  ],\n  \"address\": \"127.0.0.1\",\n  \"port\": 57983\n}\n```\n\n## Installation\nAfter cloning this repo, simply install the dependencies with:\n```bash\n$ npm install\n```\n\n## Usage\n### Basic\nTo run the server:\n```bash\n$ npm start\n```\n\n### PM2\nTo run the server with pm2 (recommended):\n```bash\n$ npm install -g pm2\n$ pm2 start ecosystem.config\n```\n\nThis will run the server in the background\n\n## Notes\n* The header values are the raw values (containing the space at the start).\n* This server was written with a custom HTTP parser, that handles only the necessary components.\n* This server was created for testing purposes only (use at your own responsability)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fden1al%2Frequest-mirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fden1al%2Frequest-mirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fden1al%2Frequest-mirror/lists"}