{"id":20709969,"url":"https://github.com/oxylabs/what-is-curl","last_synced_at":"2025-07-23T16:35:56.996Z","repository":{"id":134336710,"uuid":"554170592","full_name":"oxylabs/what-is-curl","owner":"oxylabs","description":"This step-by-step guide will explain how to use cURL or simply, curl, with proxy servers.","archived":false,"fork":false,"pushed_at":"2025-02-11T12:56:37.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T13:44:03.913Z","etag":null,"topics":["curl","golang","http","proxies","proxy","proxy-list","proxy-list-github","socks5-proxy","socks5-proxy-list","socks5-server"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/oxylabs.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":"2022-10-19T11:17:38.000Z","updated_at":"2025-02-11T12:56:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"f1579a1f-5ce6-466a-b89b-f91eb573fa5a","html_url":"https://github.com/oxylabs/what-is-curl","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/oxylabs%2Fwhat-is-curl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxylabs%2Fwhat-is-curl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxylabs%2Fwhat-is-curl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oxylabs%2Fwhat-is-curl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oxylabs","download_url":"https://codeload.github.com/oxylabs/what-is-curl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242980783,"owners_count":20216285,"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":["curl","golang","http","proxies","proxy","proxy-list","proxy-list-github","socks5-proxy","socks5-proxy-list","socks5-server"],"created_at":"2024-11-17T02:09:23.606Z","updated_at":"2025-07-08T01:39:30.340Z","avatar_url":"https://github.com/oxylabs.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is cURL and What Does It Mean\n\n[![Oxylabs promo code](https://raw.githubusercontent.com/oxylabs/product-integrations/refs/heads/master/Affiliate-Universal-1090x275.png)](https://oxylabs.io/pages/gitoxy?utm_source=877\u0026utm_medium=affiliate\u0026groupid=877\u0026utm_content=what-is-curl-github\u0026transaction_id=102f49063ab94276ae8f116d224b67)\n\n[![](https://dcbadge.vercel.app/api/server/eWsVUJrnG5)](https://discord.gg/GbxmdGhZjq)\n\n[\u003cimg src=\"https://img.shields.io/static/v1?label=\u0026message=curl\u0026color=brightgreen\" /\u003e](https://github.com/topics/curl)\n\n- [Sending requests](#sending-requests)\n- [Following redirects](#following-redirects)\n- [Connecting through a proxy](#connecting-through-a-proxy)\n\ncURL (client URL) is an open-source command line tool, and a cross-platform library (`libcurl`) used to transfer data between servers, distributed to nearly all new operating systems. cURL programming is used almost everywhere where sending or receiving data through internet protocols is required.\n\nThis article gives you an overview of cURL.\n\nFor a detailed explanation, see our [blog post](https://oxylabs.io/blog/what-is-curl). \n\n## Sending requests\n\nTo use curl, write curl followed by the URL. This sends a GET request.\n\n```shell\ncurl https://httbin.org/get \n```\n\n To send a POST request to a URL, the `-d` (or `–data`) flag is used:\n\n```shell\ncurl -d \"name=something\u0026value=somethingelse\" https://jsonplaceholder.typicode.com/posts/\n```\n\nSending such a request should return:\n\n```json\n{\n  \"name\": \"something\",\n  \"value\": \"somethingelse\",\n  \"id\": 101\n}\n```\n\nWe can also send POST requests in JSON form by adding the header `Content-Type: application/json`:\n\n```shell\ncurl -H \"Content-Type: application/json\" --data \"{\\\"data\\\":\\\"some data\\\"}\"  https://jsonplaceholder.typicode.com/posts/\n```\n\n## Following redirects\n\nAdd `-L` to follow redirects:\n\n```shell\ncurl -L https://google.com\n```\n\n## Connecting through a proxy\n\ncURL can be used to connect to any destination through a proxy:\n\n```shell\ncurl --proxy proxyaddress:port https://jsonplaceholder.typicode.com/\n```\n\nCredential details can be sent through the `-U` flag.\n\n```shell\ncurl --proxy proxy:port -U “username:password” https://jsonplaceholder.typicode.com/\n```\n\nSome websites will require authentication by themselves before they accept any connection request. A similar flag `-u` is used for server authentication: \n\n```shell\ncurl -u username:password https://jsonplaceholder.typicode.com/\n```\n\n\n\nIf you wish to learn more about cURL, see our [blog post](https://oxylabs.io/blog/what-is-curl).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxylabs%2Fwhat-is-curl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foxylabs%2Fwhat-is-curl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxylabs%2Fwhat-is-curl/lists"}