{"id":13582755,"url":"https://github.com/bouncestorage/chaos-http-proxy","last_synced_at":"2026-01-16T20:23:20.504Z","repository":{"id":29124700,"uuid":"32654483","full_name":"bouncestorage/chaos-http-proxy","owner":"bouncestorage","description":"Introduce failures into HTTP requests via a proxy server","archived":false,"fork":false,"pushed_at":"2023-11-30T01:22:18.000Z","size":76,"stargazers_count":145,"open_issues_count":5,"forks_count":11,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-07-10T15:50:00.415Z","etag":null,"topics":["chaos","http-proxy"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bouncestorage.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}},"created_at":"2015-03-21T23:35:59.000Z","updated_at":"2025-04-08T02:17:29.000Z","dependencies_parsed_at":"2024-01-07T18:07:19.924Z","dependency_job_id":null,"html_url":"https://github.com/bouncestorage/chaos-http-proxy","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bouncestorage/chaos-http-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouncestorage%2Fchaos-http-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouncestorage%2Fchaos-http-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouncestorage%2Fchaos-http-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouncestorage%2Fchaos-http-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bouncestorage","download_url":"https://codeload.github.com/bouncestorage/chaos-http-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouncestorage%2Fchaos-http-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28482267,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":["chaos","http-proxy"],"created_at":"2024-08-01T15:02:59.884Z","updated_at":"2026-01-16T20:23:20.467Z","avatar_url":"https://github.com/bouncestorage.png","language":"Java","funding_links":[],"categories":["Java","3. Fault Injection","容错组件","Notable Tools"],"sub_categories":["Networking","Spring Cloud框架"],"readme":"Chaos HTTP Proxy\n================\nIntroduce failures into HTTP requests via a\n[proxy server](http://en.wikipedia.org/wiki/Proxy_server).\nThis can uncover error handling bugs in HTTP clients.\nAndrew Gaul at Bounce Storage \u003cgaul@bouncestorage.com\u003e originally wrote\nChaos HTTP Proxy.\n\nFeatures\n--------\nChaos HTTP Proxy can trigger many different failures:\n\n* [change case of HTTP header name](http://stackoverflow.com/questions/5258977/are-http-headers-case-sensitive)\n* Content-MD5 request corruption\n* Content-MD5 response corruption\n* client timeout, HTTP 408\n* redirects (temporary and permanent)\n* reorder response headers\n* server connection break, i.e., short read and write\n* server errors: HTTP 500, 503, and 504\n* server timeout\n\nInstallation\n------------\nUsers can\n[download releases](https://github.com/bouncestorage/chaos-http-proxy/releases)\nfrom GitHub.\nOne can also build the project by running `mvn package` which produces a\nbinary at `target/chaos-http-proxy`.\nChaos HTTP Proxy requires Java 8 to run.\n\nExamples\n--------\nLinux and Mac OS X users can run Chaos HTTP Proxy via the executable jar:\n\n```\nchmod +x chaos-http-proxy\nchaos-http-proxy --properties chaos-http-proxy.conf\n```\n\nWindows users must explicitly invoke java:\n\n```\njava -jar chaos-http-proxy --properties chaos-http-proxy.conf\n```\n\nAn example using `curl`:\n\n```\ncurl --fail --proxy http://localhost:1080/ http://google.com/\ncurl: (22) The requested URL returned error: 500 Server Error\n```\n\nConfiguring Failure Rates\n-------------------------\n\nThe configuration file determines all possible results for an HTTP request.\nEntries take the form `[response_type]=[n]`, where `[n]` is an integral value\nthat determines the relative occurrence likelihood of each response type.\nFor example, the following configuration gives a 1% chance of responses\nfailing with a `500 Internal Error` response:\n\n```\ncom.bouncestorage.chaoshttpproxy.http_500=1\ncom.bouncestorage.chaoshttpproxy.success=99\n```\n\n[Sample configuration](https://github.com/bouncestorage/chaos-http-proxy/blob/master/src/main/resources/chaos-http-proxy.conf)\n\nChaos HTTP Proxy accepts configuration at invocation time via the `--properties`\nflag and at run-time via the `/chaos/api` endpoint:\n\n```\ncurl --request POST --upload-file chaos-http-proxy.conf http://localhost:1080/chaos/api\ncurl http://localhost:1080/chaos/api\ncom.bouncestorage.chaoshttpproxy.success=100\n```\n\nLimitations\n-----------\n* lacks HTTP authentication\n* lacks HTTPS support\n\nReferences\n----------\n* [Charles Web Debugging Proxy](http://www.charlesproxy.com/) - allows interactive modification of HTTP requests and responses\n* [Chaos Monkey](https://github.com/Netflix/SimianArmy) - inspiration for Chaos HTTP Proxy\n* [Hamms](https://github.com/kevinburke/hamms) - designed to elicit failures in your HTTP Client, similar to httpbin\n* [httpbin](http://httpbin.org/) - HTTP Request \u0026 Response Service which can deterministically exercise HTTP functionality\n* [pathod](http://pathod.net/docs/pathod) - programmable HTTP server\n* [toxiproxy](https://github.com/Shopify/toxiproxy) - A proxy to simulate network and system conditions\n* [toxy](https://github.com/h2non/toxy) - Hackable HTTP proxy to simulate server failure scenarios and unexpected network conditions\n* [Vaurien](https://github.com/mozilla-services/vaurien) - Chaos TCP Proxy\n\nLicense\n-------\nCopyright (C) 2015-2016 Bounce Storage\n\nLicensed under the Apache License, Version 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbouncestorage%2Fchaos-http-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbouncestorage%2Fchaos-http-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbouncestorage%2Fchaos-http-proxy/lists"}