{"id":20303654,"url":"https://github.com/rsharifnasab/java-http-client","last_synced_at":"2025-06-19T18:35:18.421Z","repository":{"id":130415890,"uuid":"328429085","full_name":"rsharifnasab/java-http-client","owner":"rsharifnasab","description":"simple HTTP client that use java socket to send get requests","archived":false,"fork":false,"pushed_at":"2021-01-10T17:19:49.000Z","size":75,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T11:14:35.105Z","etag":null,"topics":["http","http-client","java","socket"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rsharifnasab.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":"2021-01-10T16:36:55.000Z","updated_at":"2025-01-08T22:32:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"25b295bd-1e18-48e6-9217-c381aee4c4b0","html_url":"https://github.com/rsharifnasab/java-http-client","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/rsharifnasab%2Fjava-http-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsharifnasab%2Fjava-http-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsharifnasab%2Fjava-http-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsharifnasab%2Fjava-http-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsharifnasab","download_url":"https://codeload.github.com/rsharifnasab/java-http-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241801257,"owners_count":20022389,"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","http-client","java","socket"],"created_at":"2024-11-14T16:39:46.203Z","updated_at":"2025-03-04T07:12:25.989Z","avatar_url":"https://github.com/rsharifnasab.png","language":"Java","readme":"# simple http client with java\n\nDO NOT COMPARE THIS WITH CURL OR INSOMNIA OR POSTMAN :)\n\nthis is a simple http client for internet engineering course.\nit will send string to server by socket in port 80.\n\nlearn more about project in `todo.pdf`\n\n## how to run\n1. install jdk11+\n2. compile with `javac Main.java`\n3. run with `java Main`\n4. enter request url (only http 1.0 supported. no https)\n5. enter method (please use `get` :) )\n6. wait for server response.\n7. answer would be something like this:\n\n```\n==============HttpResponse==========\nversion   = HTTP/1.1\nerrorCode = 200\nerrorDesc = OK\nheaders   = {Server=gunicorn/19.9.0, Access-Control-Allow-Origin=*, Access-Control-Allow-Credentials=true, Connection=close, Content-Length=248, Date=Sun, 10 Jan 2021 16:45:31 GMT, Content-Type=application/json}\n-------body--------\n{\n  \"args\": {}, \n  \"headers\": {\n    \"Accept\": \"*/*\", \n    \"Content-Length\": \"0\", \n    \"Host\": \"httpbin.org\", \n    \"X-Amzn-Trace-Id\": \"Root=1-5ffb2f2a-40a054d36ab2677f3214b6a7\"\n  }, \n  \"origin\": \"5.113.239.236\", \n  \"url\": \"http://httpbin.org/get\"\n}\n----end of body----\n==========End Of HttpResponse=======\n```\n\n8. note that [httpbin](http://httpbin.org/) is a very good site for demonstrating this program features.\n\n\n\n### friends \nanother implementation of this project could be found [here](https://github.com/mehditeymorian/HttpClient)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsharifnasab%2Fjava-http-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsharifnasab%2Fjava-http-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsharifnasab%2Fjava-http-client/lists"}