{"id":45938271,"url":"https://github.com/justinbaur/curl-code","last_synced_at":"2026-04-22T04:06:16.454Z","repository":{"id":340218879,"uuid":"1140242050","full_name":"justinbaur/curl-code","owner":"justinbaur","description":"VSCode extension to visualize cURL","archived":false,"fork":false,"pushed_at":"2026-04-19T03:50:02.000Z","size":1204,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-19T05:32:42.071Z","etag":null,"topics":["curl","http","rest","vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=JustinBaur.curl-code","language":"TypeScript","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/justinbaur.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-23T02:28:18.000Z","updated_at":"2026-04-19T02:35:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/justinbaur/curl-code","commit_stats":null,"previous_names":["justinbaur/curl-code"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/justinbaur/curl-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinbaur%2Fcurl-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinbaur%2Fcurl-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinbaur%2Fcurl-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinbaur%2Fcurl-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justinbaur","download_url":"https://codeload.github.com/justinbaur/curl-code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinbaur%2Fcurl-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32120408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["curl","http","rest","vscode","vscode-extension"],"created_at":"2026-02-28T10:13:15.268Z","updated_at":"2026-04-22T04:06:16.437Z","avatar_url":"https://github.com/justinbaur.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# curl-code\n\nA full-featured HTTP client for VS Code with a clean UI and cURL backend.\n\n\u003e This extension is not affiliated with or endorsed by the cURL project or Daniel Stenberg.\n\n![showcase example](media/curl-code-showcase.png)\n\n## Features\n\n- **Full REST Client**: Support for GET, POST, PUT, PATCH, DELETE, HEAD, and OPTIONS\n- **Collections**: Organize requests into collections\n- **Environments**: Global and collection-scoped variables with `{{variable}}` interpolation\n- **Secret Management**: Sensitive values stored securely via VS Code's encrypted storage\n- **History**: Track all your requests automatically\n- **.http File Support**: Supports .http/.rest files with syntax highlighting\n- **.env File Support**: Import `.env` files as environments with automatic reload on change\n- **Authentication**: Basic Auth, Bearer Token, API Key, Digest, NTLM, Negotiate, AWS Sigv4, and OAuth2\n- **Advanced cURL Flags**: 35+ options — Cookies, HTTP version, proxy, SSL/TLS, retries, and more\n- **Response Viewer**: Body, Headers, cURL command, and verbose Log tabs with syntax highlighting\n- **Resizable Layout**: Drag to resize request/response panels with horizontal or vertical orientation\n- **Copy as cURL**: Export any request as a cURL command\n\n## Settings\n\n- `curl-code.curlPath`: Path to cURL executable (default: `curl`)\n- `curl-code.timeout`: Request timeout in milliseconds (default: 30000)\n- `curl-code.followRedirects`: Follow HTTP redirects (default: true)\n- `curl-code.verifySSL`: Verify SSL certificates (default: true)\n- `curl-code.saveRequestHistory`: Save request history (default: true)\n- `curl-code.maxHistoryItems`: Maximum history items (default: 50)\n\n## Requirements\n\n- cURL must be installed on your system\n- Most systems have cURL pre-installed\n- Download from: https://curl.se/download.html\n\n## Quick Start\n\n1. Click the curl-code icon in the Activity Bar\n2. Click \"New Request\"\n3. Enter a URL and click \"Send\" or press `Enter`\n\n## Resizable Layout\n\nThe request and response panels are separated by a draggable handle. Drag it to adjust how much space each panel gets (clamped between 20–80%).\n\n### Orientation Toggle\n\nClick the orientation button in the top bar to switch between:\n\n- **Horizontal (stacked)**: Request on top, response below\n- **Vertical (side-by-side)**: Request on left, response on right\n\n![side-by-side layout](media/curl-code-orientation.png)\n\n## Response Viewer\n\nResponses are displayed in a tabbed viewer with metadata at the top showing the HTTP status code (color-coded), response time, and body size.\n\n### Tabs\n\n- **Body**: Syntax-highlighted response body with JSON formatting\n- **Headers**: All response headers in key-value format\n- **cURL**: The exact cURL command that was executed — ready to copy and reproduce\n- **Log**: Verbose debug output (see [Verbose Logging](#verbose-logging) below)\n\n## Advanced cURL Flags\n\nThe **Advanced** tab in the request builder exposes fine-grained control over cURL behavior, organized into 12 categories:\n\n| Category | Options |\n|----------|---------|\n| **HTTP Version** | HTTP/1.0, HTTP/1.1, HTTP/2, HTTP/2 Prior Knowledge, HTTP/3, HTTP/3 Only |\n| **Connection** | Connect timeout, keepalive time, disable keepalive, TCP no delay |\n| **Cookies** | Cookie string/file, cookie jar file |\n| **Proxy** | Proxy URL, proxy auth, no-proxy list |\n| **SSL/TLS** | TLS version (1.0–1.3), CA cert, client cert, client key |\n| **Redirects** | Max redirects, send auth on redirect, keep POST on 301/302/303 |\n| **Retry** | Retry count, retry delay, retry max time |\n| **Debug \u0026 Compression** | Auto-decompress, verbose output |\n| **Auth Extensions** | Digest, NTLM, Negotiate/SPNEGO, AWS Sigv4, OAuth2 Bearer |\n| **DNS/Resolution** | Custom resolve (host:port:addr), connect-to mapping |\n| **Rate Limiting** | Limit rate (e.g. 100K), max filesize |\n| **Other** | User-Agent, Referer |\n\n![advanced cURL flags](media/curl-code-flags.png)\n\n### Custom Flags\n\nA raw flags textarea is always available at the bottom of the Advanced tab. Enter any additional cURL arguments directly — quoted strings are supported.\n\n## Verbose Logging\n\nEnable the **Verbose** toggle in the Advanced tab (Debug \u0026 Compression section) to capture cURL's full debug output. The **Log** tab in the response viewer displays it with color-coded lines:\n\n- `*` lines — connection info, TLS handshake, DNS resolution\n- `\u003e` lines — request data sent to the server\n- `\u003c` lines — response data received from the server\n\nA badge dot appears on the Log tab when debug output is available.\n\n![verbose log output](media/curl-code-debug.png)\n\n## Using .http Files\n\nCreate a file with `.http` or `.rest` extension:\n\n```http\n### Get Users\nGET https://api.example.com/users\nAuthorization: Bearer {{token}}\n\n### Create User\nPOST https://api.example.com/users\nContent-Type: application/json\n\n{\n  \"name\": \"John Doe\",\n  \"email\": \"john@example.com\"\n}\n```\n\nClick the \"Send Request\" CodeLens above each request to execute it.\n\n## Collections\n\nCollections let you organize and save requests for reuse.\n\n### Creating Collections\n\n1. Open the curl-code sidebar\n2. Click the folder **+** icon in the Collections section\n3. Give your collection a name\n\n### Saving Requests\n\n- Click **Save** or **Save As** in the request panel\n\n### Linked Collections\n\nCollections can be linked to a `.json` file in your workspace. Changes to the file are reflected in the collection and vice versa. This is useful for sharing collections with your team via source control.\n\n### Import / Export\n\n- **Export**: Right-click a collection and select **Export Collection** to save it as a JSON file\n- **Import**: Click the import icon in the Collections section to load a JSON collection file\n\n\u003e Exported collections never contain secret values — they are automatically redacted during export.\n\n## Environments\n\nEnvironments let you define variables that are substituted into your requests at send time. Use the `{{variableName}}` syntax anywhere in a URL, header value, request body, or authentication field.\n\n### Global Environment\n\nThe global environment applies to all requests regardless of which collection they belong to. Manage it from the **Environments** section in the sidebar.\n\n### Collection Environments\n\nEach collection can have its own environments. This is useful for switching between configurations (e.g., `dev`, `staging`, `production`) without editing individual requests.\n\n1. A new collection will be given an empty environment\n2. Navigate to it in the **Environments** section\n3. Create an environment and add variables\n\n### .env File Import\n\nImport standard `.env` files as environments:\n\n1. Click the file import icon in the **Environments** section\n2. Select a `.env` file from your workspace\n3. Variables are loaded and a file watcher is set up for automatic reload\n\nImported `.env` environments are **read-only** in the sidebar — edit the file directly to make changes. Use the context menu to open, reload, or remove the linked file.\n\n### Quick Switch\n\nClick the environment name in the VS Code status bar to quickly switch the active environment. The status bar shows a globe icon for regular environments and a file icon for `.env` file environments.\n\n## Secrets\n\nEnvironment variables can be marked as **Secret** to protect sensitive values like API keys, tokens, and passwords.\n\n### Creating a Secret Variable\n\n1. Add a new variable to any environment (global or collection)\n2. When prompted, select **Secret** as the variable type\n3. Enter the value — input is masked as you type\n\n### How Secrets Are Stored\n\n- Secret values are stored in **VS Code's SecretStorage**, which uses your operating system's credential manager (Keychain on macOS, DPAPI on Windows, libsecret on Linux)\n- Secrets are **never written to disk in plaintext** — collection JSON files contain only redacted placeholders\n- Secrets are **automatically redacted** when exporting a collection\n- In the sidebar, secret values are displayed as `••••••`\n\n#### Why This Matters\n\nIf you keep your collections in source control (e.g., linked collections in a `.json` file), your secret values will not leak into your repository. Only the variable names and non-secret values are persisted to disk.\n\n## Authentication\n\nThe request editor supports built-in authentication methods:\n\n- **None**: No authentication\n- **Basic Auth**: Username and password (sent as Base64-encoded `Authorization` header)\n- **Bearer Token**: Token value sent as `Authorization: Bearer \u003ctoken\u003e`\n- **API Key**: Key-value pair sent as either a header or a query parameter\n\nAdditional authentication methods are available in the [Advanced cURL Flags](#advanced-curl-flags) under **Auth Extensions**: Digest, NTLM, Negotiate/SPNEGO, AWS Sigv4, and OAuth2 Bearer.\n\nAuthentication fields support `{{variable}}` interpolation, so you can store credentials in your environment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinbaur%2Fcurl-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustinbaur%2Fcurl-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinbaur%2Fcurl-code/lists"}