{"id":40770970,"url":"https://github.com/pridkett/cookieproxy","last_synced_at":"2026-01-21T18:49:19.506Z","repository":{"id":53991640,"uuid":"341071984","full_name":"pridkett/cookieproxy","owner":"pridkett","description":"A simple golang proxy that augments requests with cookies","archived":false,"fork":false,"pushed_at":"2021-04-11T22:09:25.000Z","size":25,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-20T22:35:08.660Z","etag":null,"topics":["cookie","cookies","golang","http","https","proxy-server"],"latest_commit_sha":null,"homepage":"","language":"Go","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/pridkett.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":"2021-02-22T03:46:24.000Z","updated_at":"2022-09-30T22:14:43.000Z","dependencies_parsed_at":"2022-08-13T05:50:27.039Z","dependency_job_id":null,"html_url":"https://github.com/pridkett/cookieproxy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pridkett/cookieproxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pridkett%2Fcookieproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pridkett%2Fcookieproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pridkett%2Fcookieproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pridkett%2Fcookieproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pridkett","download_url":"https://codeload.github.com/pridkett/cookieproxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pridkett%2Fcookieproxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28639898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T18:04:35.752Z","status":"ssl_error","status_checked_at":"2026-01-21T18:03:55.054Z","response_time":86,"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":["cookie","cookies","golang","http","https","proxy-server"],"created_at":"2026-01-21T18:49:18.735Z","updated_at":"2026-01-21T18:49:19.499Z","avatar_url":"https://github.com/pridkett.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CookieProxy\n\nPatrick Wagstrom \u0026lt;patrick@wagstrom.net\u0026gt;\n\nFebruary 2021\n\n## Overview\n\nThis was made for a _very_ niche use case of needing to use [telegraf](telegraf) with a remote API that required cookies and non-standard authentication method to get those cookies. Using this tool you can proxy through those requests with the appropriate cookies.\n\n## Usage\n\nWhile CookieProxy works without a CookieJar, you'll first want to create a CookieJar for maximum awesomeness.\n\n```bash\n./cookieproxy -cookiejar ~/cookies.txt\n```\n\nYou'll see that CookieProxy has started on port 8675 and is ready to proxy requests:\n\n```bash\ncurl http://localhost:8675/p/?target=http://foo.com/bar.png\n```\n\n### Advanced Usage\n\nI recently added support for querying a host to grab the cookies. This is particularly useful for my main use case of acting as an authenticated proxy to a Tesla Powerwall. When using it in this way you don't need to specify the `-cookiejar` argument, but instead pass a JSON object as a string to the `-request` argument.\n\n```bash\n./cookieproxy -request '{\"url\": \"https://powerwall/api/login/Basic\", \"headers\": {\"Content-Type\": \"application/json\"}, \"body\": \"{\\\\\"username\\\\\":\\\\\"customer\\\\\",\\\\\"password\\\\\":\\\\\"YOUR_POWERWALL_PASSWORD\\\\\",\\\\\"force_sm_off\\\\\":false}\", \"method\": \"POST\"}'\n```\n\nThen you can easily validate it with the following command:\n\n```bash\ncurl \"http://localhost:8675/p/?target=https://powerwall/api/meters/aggregates\"\n```\n\n## License\n\nCopyright © 2021 Patrick Wagstrom\n\nLicensed under terms of the MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpridkett%2Fcookieproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpridkett%2Fcookieproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpridkett%2Fcookieproxy/lists"}