{"id":20991216,"url":"https://github.com/brenordv/go-request","last_synced_at":"2025-12-26T08:58:52.092Z","repository":{"id":117483572,"uuid":"406151322","full_name":"brenordv/go-request","owner":"brenordv","description":"This is a simple application to make batch GET and POST requests.","archived":false,"fork":false,"pushed_at":"2021-12-21T19:00:47.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T08:13:04.418Z","etag":null,"topics":["command-line","commandline-tool","go","golang","http"],"latest_commit_sha":null,"homepage":"","language":"Go","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/brenordv.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":"2021-09-13T22:47:07.000Z","updated_at":"2021-12-21T19:00:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd7db1fe-6afc-4ef3-980a-9834d7a7c532","html_url":"https://github.com/brenordv/go-request","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenordv%2Fgo-request","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenordv%2Fgo-request/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenordv%2Fgo-request/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brenordv%2Fgo-request/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brenordv","download_url":"https://codeload.github.com/brenordv/go-request/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243401515,"owners_count":20285060,"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":["command-line","commandline-tool","go","golang","http"],"created_at":"2024-11-19T06:37:45.854Z","updated_at":"2025-12-26T08:58:52.068Z","avatar_url":"https://github.com/brenordv.png","language":"Go","readme":"# go-request!\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=brenordv_go-request\u0026metric=security_rating)](https://sonarcloud.io/summary/new_code?id=brenordv_go-request)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=brenordv_go-request\u0026metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=brenordv_go-request)\n[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=brenordv_go-request\u0026metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=brenordv_go-request)\n\n[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=brenordv_go-request\u0026metric=bugs)](https://sonarcloud.io/summary/new_code?id=brenordv_go-request)\n[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=brenordv_go-request\u0026metric=code_smells)](https://sonarcloud.io/summary/new_code?id=brenordv_go-request)\n[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=brenordv_go-request\u0026metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=brenordv_go-request)\n[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=brenordv_go-request\u0026metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=brenordv_go-request)\n[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=brenordv_go-request\u0026metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=brenordv_go-request)\n\nThis is a simple application to make batch GET and POST requests.\n\n## How to use\nTo use this application, you must provide a JSON with the desired parameters.\n\n### JSON example\n```json\n{\n  \"get\": {\n    \"numRequests\": 100000,\n    \"url\": \"http://localhost:5001/sensors/v1/\",\n    \"headers\": {\n      \"Authorization\": \"Bearer eyJhbGciOiJBMTI4S1ciLCJlbmMiOiJBMTI4R0NNIiwidHlwIjoiSldUIiwiY3R5IjoiSldUIiwiemlwIjoiREVGIiwia2lkIjoiMXYZ.oid0BipNH3grGLDO_s55aIF7D-aYG45X.NsHC-_c82lCSjFOY.oAxgn0qXuAy3JnGx1wEdILNX0iWSvASTg2on4Q5vsoTOB2ynQkfpMPKPJ98PjKebb4zdNsgCbIbUdSVpvboH7JGcF1fQ8YRLiiWYAvQHLy684juhuzaTNECxRfAUu_ESnKV7nOjnUuPl3LHLiQ4StzEwBndoQ9Qff98QLl3atRyEH06T-YeVDedeJ2RthC7d8LZ8U5WyRyAqgAFyLetM3XCFz5fBnNXKwT0EHYmhhINyhRUijPZiQmE--GihlyfZzs9ryw5aMVEdU8P0gMzDINugesMyzhZlscniZjee50VKgMIoAwV_K7IGYFDuLnPojw28z57W3KcloZyeH-Ph8X9qwKb347PXX8kPV5uGztLzjKJnMsYOfnp7OMgh2ZkC7Re05oCXf2AyyDzZBqH6bImX3yk_mBV0jIO7fVMVtWRjoi2zZe6eoESeahnc19zfBJiO90m7ZKJJV5KqXa0uI6hF2YI_q-tijIw_zLE98h2kL9OPS5W4VATNobRDGhol_nFueOiT7Io8Lk4gg07XaZrDa8qq1N--Uxk5pV7CeTuLQZVhLxb5S5rNkU78IEClpvHfA-rT17KRmhUguC9mN0xjui-7fOURjcWUS6fkgqRkjbWDcabAxZTRzaYlWhU-lonq6UWRN5U0_XtYS9ub8v8eoU0sqCDFMP5GkUVh5HmFQSi3vbXRhhIo5_JPhi5HKoY-8UFU1L7RgL04kKocFdsCn3fzsSSCg56vv_85PjBrCF2-aO9llzccccyyVTbe7S-YxIcRPtknff0SRcdxIqQbTivB_vZ6HsTCgFWA4ZQ5QJhb21DI1TbKj0VWhuCv0JBphRPcbjm9ByZXi3QkweqYH3O--EC8n8MKdLfNTxGxPTI4cBErOHPM8uYjdr6vVmijcqHJ65wLyu1bv8U2wWJlhwakgyjOur1WmnHi1ykcpBcpYECDqax_ZJuUEBTdGL0nm5Q4BAhefm5fPUh4FMChtXWPhIFVR9ops7ojNjSH3VsF46vbZkcDseJldQRptie7iMOAz_nqQnEyS9sN04sGXrwgbtqEde_hLhAL0CyaKg8na1E4vxoVR2RMNpvHBVennUP_cQyvHIUvV4auYxq2Wpet2Z242efxQahejo5dvWdPoDEctE-dOBDHB7TjFoABHsfbs84pW0zCZpoBI5s7NSrB0y6dZ5mCLn7uEbEv7RWxNcyXQG4tcMxTd7zSLE5uKyOBP5ZLFOFuti_WrgoYxSDXOnMvf_shO_K48s87WEWFIIvBabno17hTUGwmVHzkBb00TmGkA7Brb6Fs2Q-fg7UXj0qqUEZcLmwW8glhoJ-OafbasG7hXTnWPQdhl2Z6586ofh6TvMHFw35bFK9iL9V3BBgH-5I6gbu3lSXPozEwlU7y66Waxtk7L1TJJIeV2L394O2KhfgzzK7nz_uPVcnwuefBWGRA2oNyeX84bvtLKJu6PKks7Fhy5qa4yPj8Sr5I45e97E1lYkNUJp6D5FeqGGJ1uNjQKgUH9xbgn-rO4czk4Z2cGVhMLq94T7NuTDpWka8AQXZ504GLpwW0IrDWoVBkshX9W2jPfxhaeZZ6Kchv749mWXH001QX1XKW.nmrf9SZVXgvEtbjPI_219w\"\n    }\n  },\n  \"post\": {\n    \"numRequests\": 20000,\n    \"aggressiveMode\": true,\n    \"url\": \"http://localhost:5001/sensors/v1/\",\n    \"headers\": {\n      \"Content-Type\": \"application/json\"\n    },\n    \"body\": {\n      \"sensor_id\": \"S1\",\n      \"reading_location_id\": \"L1\",\n      \"reading_value\": 42.007,\n      \"read_at\": \"2021-12-20T15:42:00.000Z\"\n    }\n  }\n}\n```\n\nThe root key is the desired request method (GET or POST) and inside you must provide:\n1. `numRequests`: Number of requests that will be made\n2. `aggressiveMode`: If `false`, will wait for the current request to be finished before starting the next one. If `true`, requests will be made simultaneously.\n3. `url`: The target address for the requests.\n4. `headers`: Whatever you put here, will be sent as headers for each request.\n5. `body`: (Only used for POST requests.) This will be the data sent in the request. \n\n### Running the requests\nFor the examples bellow, consider a json file named `my-request-config.json` placed in the same folder as \nthe application.\n\n### Get \n```shell\ngo-get.exe ./my-request-config.json\n```\n\nExample output:\n```text\ngo-Request!::GET\nYour session id is: 98c1136b-3ada-4aec-b1f5-c2783f0b19dd\nMaking GET requests 100% |█████████████████████████████████████████████| (5000/5000, 650 it/s)\nDone! Elapsed time: 8.6664993s\n\nProcess finished with the exit code 0\n```\n\n\n### Post\n```shell\ngo-post.exe ./my-request-config.json\n```\n\nExample output:\n```text\ngo-Request!::POST\nYour session id is: 59028850-6238-4601-9a92-bd51a313c667\nMaking POST requests 100% |█████████████████████████████████████████████| (5000/5000, 578 it/s)\nDone! Elapsed time: 8.6464703s\n\nProcess finished with the exit code 0\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrenordv%2Fgo-request","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrenordv%2Fgo-request","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrenordv%2Fgo-request/lists"}